I'm very new to VBA and wondering if I can use it to speed up a project. Here is the scenario: I have a very old system in which I need to enter 1000s of entrees from a spreadsheet. The system asks for one piece of information that I need to manually enter from a spreadsheet. I'm wondering if I can use VBA to search the spreadsheet and pull the data from column Y where column X = "1". The system does have a macro function in which I can modify the VBA code.
Basically, what I want to happen is to run a macro that triggers a SQL select statement which states SELECT Y WHERE X EQUALS (Enter Data Number).
Below is the best I can do by way of laying out the existing VBA code. My apologies for my ignorance.
Sub Test()
With Session
.Transmit "Select Column Y from Example Spreadsheet where Column X Equals (Enter Data Number)"
' Press HpEnter (Simulate pressing the Enter key).
.TransmitTerminalKey rcHpEnterKey
Exit Sub