Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Opening a spreadsheet using VB

Tom,

As someone who regularly posts links, could I respectfully suggest that you
take a look at www.tinyURL.com, which will do a similar job to condensing
the URLs as Make A Shorter Link, but without the intermediate step via that
site. In addition, you can add a link to your favourites that will generate
a tinyURL from the active web page.

I think you will like it.

Regards

Bob


"Tom Ogilvy" wrote in message
...
Basically you are asking how to use automation to automate Excel. Here

are
several examples:


http://support.microsoft.com/search/...3D1033%26CDID%
3DEN-US-KB%26PRODLISTSRC%3DON&withinResults=&QuerySource=g ASr_Query&Product=
vb6&Queryc=automation+excel&Query=automation+excel &KeywordType=ANY&maxResult
s=25&Titles=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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting - Opening a spreadsheet HpyTrvlr69 Excel Discussion (Misc queries) 1 May 3rd 09 05:22 AM
#REF! after opening a spreadsheet AG Excel Discussion (Misc queries) 0 April 27th 07 08:20 PM
opening a spreadsheet stumped New Users to Excel 2 June 10th 06 02:02 AM
Opening a spreadsheet Multiple speadsheets Excel Discussion (Misc queries) 1 March 8th 06 05:15 PM
Opening an excel spreadsheet Frustrated Excel Worksheet Functions 1 April 2nd 05 06:39 PM


All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"