Hi, I'm quite new to excel macro/vba programming and need some guidence.
I need to write a macro that will (probably) use an ODBC DSN to connect to a database and select two columns COLA and COLB from TABLE1. I want it to place the contents of COLA into column A in my spreadsheet and COLB in column B in my spreadsheet.
Does this sound possibble? if so could anyone give me a good starting point?
I have already created an ODBC connection within Windows - is it possible to use this?
Thank you very much in advance.
I need to write a macro that will (probably) use an ODBC DSN to connect to a database and select two columns COLA and COLB from TABLE1. I want it to place the contents of COLA into column A in my spreadsheet and COLB in column B in my spreadsheet.
Does this sound possibble? if so could anyone give me a good starting point?
I have already created an ODBC connection within Windows - is it possible to use this?
Thank you very much in advance.