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 open Excel workbook using vbscript

In your script, include a line of code like:

Workbooks.Open "C:\my folder\myworkbook.xls"


Hopefully you don't mean the script is contained in that workbook.

--
Regards,
Tom Ogilvy


"fern" wrote in message
...
Hi there,

how to write a vbscript so that when the script run, my
Excel workbook will automatically open?


thanks in advance.



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
Opening Excel, Book1 opens, remains open with other workbook open DanieB Excel Discussion (Misc queries) 0 September 3rd 09 08:23 AM
excel 2003 saved file will not open without a blank workbook open Bob Excel Discussion (Misc queries) 4 November 11th 06 04:24 PM
Saving an entire workbook as a PDF using VBSCript Who be dat? Excel Discussion (Misc queries) 5 March 20th 06 07:09 PM
Saving an entire workbook as a PDF using VBSCript Who be dat? Excel Worksheet Functions 4 March 20th 06 07:09 PM
Excel workbook does not open in open window on desktop DeanH Excel Discussion (Misc queries) 2 March 8th 05 09:51 AM


All times are GMT +1. The time now is 09:55 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"