LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default File opens another file runs macro and closes

I want to have a sub in a file like:

File named: FileStarter.xls

Sub OpenFile1()
Workbooks.Open Filename:= _
"C:\File001.xls", Password:="aaaaa"
End Sub

Then in File001.xls I want to run an Auto_Open macro which will start run on
the opening of File001.xls and the first thing I want to do is close
FileStarter.xls and continue running more code in File001.xls Auto_Open.

I am trying but cannot make this work.

Thank you for your help,

Steven

 
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
Workbook1 opens Workbook2 and runs Workbook2's macro chuck buchanan Excel Programming 2 April 7th 08 04:33 PM
Run macro when file closes Patrick C. Simonds Excel Programming 1 December 31st 07 07:52 AM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Creating a .bat file that opens, pauses & closes MS Excel alexa Excel Programming 15 August 22nd 05 08:58 PM
in a excel file, how to make a menu item for the .xls file that when clicked on it runs myform.show? example plz Daniel Excel Worksheet Functions 1 July 7th 05 03:52 AM


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