chanman525
IS-IT--Management
Good afternoon experts,
I have an excel worksheet in which I use several MSQueries (in specific cells) to pull information from an access database.
I changed the location of the database and finally figured out how to go in to the script editor do a find / replace and change all the paths to my new database location but I would like to put the correct path in a cell in the worksheet and have ms script reference that as a variable. Following is a line of scipt that has the database path in it. Does anyone know how to use a variable that would reference a cell in my worksheet for this path? Thanks in advance for any help you can provide
<x:Connection>DSN=MS Access Database;DBQ=g:\ryano\E2Automation.mdb;DefaultDir=g:\ryano;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeo</x:Connection>
I have an excel worksheet in which I use several MSQueries (in specific cells) to pull information from an access database.
I changed the location of the database and finally figured out how to go in to the script editor do a find / replace and change all the paths to my new database location but I would like to put the correct path in a cell in the worksheet and have ms script reference that as a variable. Following is a line of scipt that has the database path in it. Does anyone know how to use a variable that would reference a cell in my worksheet for this path? Thanks in advance for any help you can provide
<x:Connection>DSN=MS Access Database;DBQ=g:\ryano\E2Automation.mdb;DefaultDir=g:\ryano;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeo</x:Connection>