Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default run macro auto

Hi,
I have a excel file that keeps the macro recorded. Now
What I want to do each time I open another excel file,
that macro should be run automatically, how can I do this?
Thanks,
Jim.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default run macro auto

Hi
either rename the macro to Auto_Open()
or put the code in the workbook event Workbook_open()

--
Regards
Frank Kabel
Frankfurt, Germany


JIM.H. wrote:
Hi,
I have a excel file that keeps the macro recorded. Now
What I want to do each time I open another excel file,
that macro should be run automatically, how can I do this?
Thanks,
Jim.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default run macro auto

Hi Frank,
Thanks for the reply. Macro is not actually attaced to
the file I open. We have many excel files created by
another system daily in a folder and when users open any
of them we want to moodify the data and present it. Macro
that modifies the data is attached to a single excel
file. I created a macro icon that calles macro in the in
the macro excel file, it works but I want the macro in
the macro excel file be code once any of the excel file
is openned. Thes files do not have anything in the
workbook event side. Any idea?
Thanks,
Jim.

-----Original Message-----
Hi
either rename the macro to Auto_Open()
or put the code in the workbook event Workbook_open()

--
Regards
Frank Kabel
Frankfurt, Germany


JIM.H. wrote:
Hi,
I have a excel file that keeps the macro recorded. Now
What I want to do each time I open another excel file,
that macro should be run automatically, how can I do

this?
Thanks,
Jim.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default run macro auto

Hi Jim
AFAIK you have to put this kind of code in the files which are opened.
Don't see a chance to use a generich conde in your master document.

--
Regards
Frank Kabel
Frankfurt, Germany


JIM.H. wrote:
Hi Frank,
Thanks for the reply. Macro is not actually attaced to
the file I open. We have many excel files created by
another system daily in a folder and when users open any
of them we want to moodify the data and present it. Macro
that modifies the data is attached to a single excel
file. I created a macro icon that calles macro in the in
the macro excel file, it works but I want the macro in
the macro excel file be code once any of the excel file
is openned. Thes files do not have anything in the
workbook event side. Any idea?
Thanks,
Jim.

-----Original Message-----
Hi
either rename the macro to Auto_Open()
or put the code in the workbook event Workbook_open()

--
Regards
Frank Kabel
Frankfurt, Germany


JIM.H. wrote:
Hi,
I have a excel file that keeps the macro recorded. Now
What I want to do each time I open another excel file,
that macro should be run automatically, how can I do this?
Thanks,
Jim.

.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default run macro auto

I think you can do this with an application event.

Take a look at
http://www.cpearson.com/excel/AppEvent.htm

JIM.H. wrote:
Hi Frank,
Thanks for the reply. Macro is not actually attaced to
the file I open. We have many excel files created by
another system daily in a folder and when users open any
of them we want to moodify the data and present it. Macro
that modifies the data is attached to a single excel
file. I created a macro icon that calles macro in the in
the macro excel file, it works but I want the macro in
the macro excel file be code once any of the excel file
is openned. Thes files do not have anything in the
workbook event side. Any idea?
Thanks,
Jim.


-----Original Message-----
Hi
either rename the macro to Auto_Open()
or put the code in the workbook event Workbook_open()

--
Regards
Frank Kabel
Frankfurt, Germany


JIM.H. wrote:

Hi,
I have a excel file that keeps the macro recorded. Now
What I want to do each time I open another excel file,
that macro should be run automatically, how can I do


this?

Thanks,
Jim.


.



--
Steve Garman


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
Auto run macro Esradekan Excel Worksheet Functions 5 August 31st 08 11:58 PM
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
Macro Auto Run(2) Gary Excel Worksheet Functions 4 May 18th 06 09:07 AM
macro auto run nightshift12 Excel Programming 3 June 7th 04 08:09 AM


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