View Single Post
 
Old 12-16-2013, 09:09 AM
jtemp57 jtemp57 is offline Windows Vista Office 2007
Novice
 
Join Date: Dec 2013
Posts: 6
jtemp57 is on a distinguished road
Default

I fixed the issue of it asking me twice to select my list.

I want the rest of the Macro to run automatically after I select my file. I need it to select "OLE DB Database File" and then always select the same list from the excel file say "My_List". Then have it finished ready to be able to select the Print options.

Here is what comes up when I record the macro to do this, but where do I insert this into the code you provided me with? and what do I need to add/delete to make it function properly?

Code:
SQLStatement:="SELECT * FROM `My_List`", SQLStatement1:="", SubType:= _
        wdMergeSubTypeAccess
Reply With Quote