Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default VBA Code to Import VBA Modules

Hello,

I have an application that creates multiple Workbooks. In each Workbook I
would like to add VBA Code to Microsoft Excel Objects / Sheet 1

Private Sub Worksheet_Change(ByVal Target As Range)
....
End Sub

Is their a way (& if so, how) to add this Code to Each Workbook as it is
being created.

Any help would be greatly appreciated.

Thank you,
Jeff

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VBA Code to Import VBA Modules

See www.cpearson.com/excel/vbe.htm for details and example code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Jeff" wrote in message
...
Hello,

I have an application that creates multiple Workbooks. In each
Workbook I
would like to add VBA Code to Microsoft Excel Objects / Sheet 1

Private Sub Worksheet_Change(ByVal Target As Range)
....
End Sub

Is their a way (& if so, how) to add this Code to Each Workbook
as it is
being created.

Any help would be greatly appreciated.

Thank you,
Jeff



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
Macro to import modules into a worksheet michaelberrier Excel Discussion (Misc queries) 1 June 4th 06 07:39 PM
Delete Code Modules Programatically blatham Excel Discussion (Misc queries) 1 February 3rd 06 05:38 PM
When to code in sheet or userform modules and when to use modules Tony James Excel Programming 1 December 16th 04 10:02 PM
editing code in modules through VB mark Excel Programming 2 August 12th 04 05:20 PM
Need help on How to programatically Import VBA Project Excel Objects, Forms, Modules JMMach Excel Programming 7 October 21st 03 08:46 PM


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