View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Opening a spreadsheet using VB

Basically you are asking how to use automation to automate Excel. Here are
several examples:

http://support.microsoft.com/search/...false&numDays=

The above should all be on one line in your browse.

For specific code to use in Excel, all you need to do is turn on the macro
recorder and perform those actions manually. Turn off the macro recorder,
then view the code recorded. Then you can adapt that code to an automation
scenario as shown above.

--
Regards,
Tom Ogilvy



"zac" wrote in message
...
Hello,
I have a spreadsheet (XP) with links to query's in Access
XP and SQL 2000 that needs to be opened and refreshed
(Refresh All button is the one that works when done
manually) on all tabs. Would anyone be able to provide
some sample code in VB 6 that would show how to open and
refresh a spreadsheet, then save and close? The first 2
are more important though.

thanks,
Zac