View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
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