Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default opening a file in closing

i would like to open a file with code in MS Excel 2003. i am sure it is just
a one line entry but i am having troubles finding the right code.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default opening a file in closing

Josh,

take a look at the Open method of the Workbooks collection..

WorkBooks.Open("C:\sample.xls")


--
Hope that helps.

Vergel Adriano


"Josh C" wrote:

i would like to open a file with code in MS Excel 2003. i am sure it is just
a one line entry but i am having troubles finding the right code.
Thanks

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 then later Closing an Excel file in VBA Richard Excel Discussion (Misc queries) 1 April 22nd 08 02:07 PM
Custom message at opening or closing of file Patty Excel Discussion (Misc queries) 2 November 16th 07 03:16 PM
Opening and Closing a "EXE" file within Excel Steve Excel Discussion (Misc queries) 1 October 23rd 07 03:18 PM
Opening and closing workbook with VBA... Trevor[_4_] Excel Programming 1 March 4th 04 08:33 PM
Opening and Closing workbooks Jase Excel Programming 1 October 15th 03 06:28 AM


All times are GMT +1. The time now is 09:36 AM.

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

About Us

"It's about Microsoft Excel"