Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open/Close xls from Access

Status
Not open for further replies.

scrappe7

Technical User
Jul 30, 2001
82
US
hi out there,

I have a macro that runs a query and then sends a lsit of names to a dumby excel file. Then on my main excel file i reference the list of names from the query to a column and use that as the source for my list box.

Here are the parts i need help on:
1) I know how to run the query and export the data to the dumby sheet

2) How can i make the next step of this macro to be to open up a desired excel file? Where would i enter it.? I am thinking there is a commmand line in module that i can use. This will be the main file that the dumby file gets refernced to.

3) I then need to close the dummy file as the next step of the macro. If there's a command to open a file there should be on to close a file as well??


Does anyone out there know the syntax to open and close excel files from access?? Your help is greatly appreciated. Also, please be very detailedin your explanation because i am a VB newbie. Thank you again!!!

Ed

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top