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


I have a macro - module1 () that we can run it manually.

Now I want to have the macro run automatically when the workbook open
so I add workbook_open()
--------------------------------
Private Sub Workbook_Open()
call module1
End Sub
-------------------------------
However, when I open the workbook again, nothing happens, I still nee
to run the macro manually.....

ANY SUGGESTIONS???

Thank you

--
jenh
-----------------------------------------------------------------------
jenhu's Profile: http://www.excelforum.com/member.php...fo&userid=2896
View this thread: http://www.excelforum.com/showthread.php?threadid=52774

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Have the macro run automatically

Hi jenhu

Call macroname
Or name your macro "auto_open"

See also
http://www.cpearson.com/excel/events.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jenhu" wrote in message
...

I have a macro - module1 () that we can run it manually.

Now I want to have the macro run automatically when the workbook opens
so I add workbook_open()
--------------------------------
Private Sub Workbook_Open()
call module1
End Sub
-------------------------------
However, when I open the workbook again, nothing happens, I still need
to run the macro manually.....

ANY SUGGESTIONS???

Thank you.


--
jenhu
------------------------------------------------------------------------
jenhu's Profile: http://www.excelforum.com/member.php...o&userid=28969
View this thread: http://www.excelforum.com/showthread...hreadid=527748



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
How do you do the following using VBA macro automatically? LunaMoon Excel Discussion (Misc queries) 1 May 4th 10 08:37 PM
Macro to automatically run Pam C Excel Discussion (Misc queries) 1 May 5th 05 02:35 PM
Automatically Run Macro Carl Excel Programming 4 July 20th 04 05:38 PM
run macro automatically nightshift12[_2_] Excel Programming 1 June 8th 04 04:14 AM
macro to run automatically Michael Bednarek Excel Programming 0 July 31st 03 09:20 AM


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