Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default How do I write code to "Workbook_Open" from within a VBA?

I have a macro that sets up a new workbook and adds macros to it.
To do that, I export a module and then import it into the new file.

My question is how I can use VBA in the master workbook to VBA code to the
new Workbook's "Workbook_Open" VBA?

I'm only talking about 1 line to call up a dialog box so hopefully it's not
that difficult.

Thanks
MikeZz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How do I write code to "Workbook_Open" from within a VBA?

See this webpage Mike
http://www.cpearson.com/excel/vbe.aspx

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"MikeZz" wrote in message ...
I have a macro that sets up a new workbook and adds macros to it.
To do that, I export a module and then import it into the new file.

My question is how I can use VBA in the master workbook to VBA code to the
new Workbook's "Workbook_Open" VBA?

I'm only talking about 1 line to call up a dialog box so hopefully it's not
that difficult.

Thanks
MikeZz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How do I write code to "Workbook_Open" from within a VBA?

Wow, all is there! Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default How do I write code to "Workbook_Open" from within a VBA?

Wow, Thanks for the quick reply.
Don't have time to read it now but it looks like a site I had linked before
but I recently lost my favorites.

"Ron de Bruin" wrote:

See this webpage Mike
http://www.cpearson.com/excel/vbe.aspx

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"MikeZz" wrote in message ...
I have a macro that sets up a new workbook and adds macros to it.
To do that, I export a module and then import it into the new file.

My question is how I can use VBA in the master workbook to VBA code to the
new Workbook's "Workbook_Open" VBA?

I'm only talking about 1 line to call up a dialog box so hopefully it's not
that difficult.

Thanks
MikeZz


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 to write formula for countif (range,"<2" &"3") Vinod Tripathi Excel Discussion (Misc queries) 1 May 1st 09 07:27 AM
How do I write an excel formula with a text answer ("yes" or "no") pat Excel Discussion (Misc queries) 1 September 9th 08 03:41 PM
is it possitle i write"1"and "one" will show in next coloumn. srksiddiqui Excel Discussion (Misc queries) 1 June 9th 08 02:37 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM
How can i write a vba code to get string or integer "C15" from $c$15? d Excel Programming 2 August 29th 03 06:11 PM


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