Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Getting a Macro to run in a different XLS file

I've created a formatting macro that runs beautifully called "Export Macro"
located in the file "Macro 2006.xls". I want to make "Export Macro" run in a
separate file called "Presubmission.xls". This file is generated by Access,
located in the same spot with the same title (for grins, let's say the path
is: \\svr1\Common\MI\Frustration\Presubmission.xls)

Ultimately, I want to link the "Export Macro" to a command button in "Macro
2006.xls", which tells it to go the "Presubmission.xls" and run "Export
Macro", thereby formatting my report.

What is the code I need to have to accomplish this? I've tried a few
different things, but am still somewhat new a macro writing.

Any help would be appreciated!

Thank you,
Michele
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting a Macro to run in a different XLS file

Look at Application.Run

--
Regards,
Tom Ogilvy

"Michele" wrote in message
...
I've created a formatting macro that runs beautifully called "Export

Macro"
located in the file "Macro 2006.xls". I want to make "Export Macro" run

in a
separate file called "Presubmission.xls". This file is generated by

Access,
located in the same spot with the same title (for grins, let's say the

path
is: \\svr1\Common\MI\Frustration\Presubmission.xls)

Ultimately, I want to link the "Export Macro" to a command button in

"Macro
2006.xls", which tells it to go the "Presubmission.xls" and run "Export
Macro", thereby formatting my report.

What is the code I need to have to accomplish this? I've tried a few
different things, but am still somewhat new a macro writing.

Any help would be appreciated!

Thank you,
Michele



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
2007 Macro to Open File, Delete Contents, Save New File Flintstone[_2_] Excel Discussion (Misc queries) 2 February 1st 10 11:25 PM
Macro to save Excel file with date and time in the file name? sonic_d_hog Excel Programming 2 January 5th 06 05:57 PM
Macro to call a file that has a auto open macro in the file itself [email protected] Excel Programming 1 August 5th 05 06:39 AM
Automate open file, update links, run macro, close and save file Geoff[_7_] Excel Programming 2 August 26th 03 10:13 PM


All times are GMT +1. The time now is 03:43 PM.

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"