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

hi,
how can i make a macro available for use everytime i start excel?
thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default adding macro

Put the following sub in ThisWorkbook module:

Private Sub Workbook_Open()
msgbox "Hello, World!"
End Sub


"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default adding macro

how should i save this marco?

"Bill James" wrote in message
...
Put the following sub in ThisWorkbook module:

Private Sub Workbook_Open()
msgbox "Hello, World!"
End Sub


"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
thanks






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default adding macro

Sorry for the double post...

You can also put your macro in a startup template file (.xlt) and place it
in the default startup template folder. You can also create a toolbar (in
your startup template) with a button that runs your macro.

Then it will be available to all Excel workbooks.

"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default adding macro

Hi Lynn,

Save the macro in the Personal.xls workbook stored in the XLStart folder.

The macro will then be available to all open workbooks.

---
Regards,
Norman



"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
thanks






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default adding macro

when i tried to run Tools - Macro, i don't see the Workbook_Open macro
there.
where did i do wrong?


"Norman Jones" wrote in message
...
Hi Lynn,

Save the macro in the Personal.xls workbook stored in the XLStart folder.

The macro will then be available to all open workbooks.

---
Regards,
Norman



"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
thanks






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default adding macro

Hi Lynn.

when i tried to run Tools - Macro, i don't see the Workbook_Open
macro there.
where did i do wrong?


My suggestion did not relate to Workbook_Open. I suggested saving your macro
in your Personal macro workbook.

you may wish to visit David McRitchie's 'Getting Started With Macros And
User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

BTW, the Workbook_Open macro is a special event procedure that fires
automatically each time the parent workbook is opened. This macro does not
appear in the macro list. For more information on Event Procedures, see Chip
Pearson at:

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


---
Regards,
Norman



"Lynn" wrote in message
...
when i tried to run Tools - Macro, i don't see the Workbook_Open macro
there.
where did i do wrong?


"Norman Jones" wrote in message
...
Hi Lynn,

Save the macro in the Personal.xls workbook stored in the XLStart folder.

The macro will then be available to all open workbooks.

---
Regards,
Norman



"Lynn" wrote in message
...
hi,
how can i make a macro available for use everytime i start excel?
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
Adding a new row with a macro Dobbs734 Excel Discussion (Misc queries) 2 June 1st 09 06:08 PM
Adding a Tab in a Macro [email protected] Excel Discussion (Misc queries) 10 February 28th 06 09:57 PM
Adding a row with macro Nigel Excel Programming 3 May 5th 05 11:38 AM
Adding Row to this macro Nigel Excel Discussion (Misc queries) 2 May 4th 05 05:27 PM
Adding row Macro From Mike G. Excel Programming 2 May 18th 04 06:21 PM


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