Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store VBA-Code centrally
Hi!
I have certain instances of Excel-Sheets with VBA code. I update the code frequently and have to go through all the Excel sheets and copy and paste the updates. Is there a way to store the code centrally and have the sheets update automatically? Best regards, Martin |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store VBA-Code centrally
If all the sheets are in one workbook and the code is same for each sheet,
place the code in Thisworkbook module. Private Sub Workbook_SheetChange(ByVal Sh As Object, _ ByVal Target As Range) your code here End Sub If sheets in multiple workbooks see Chip Pearson's site. http://www.cpearson.com/excel/vbe.aspx Gord Dibben MS Excel MVP On Wed, 19 Aug 2009 14:22:53 +0200, Martin Schneider wrote: Hi! I have certain instances of Excel-Sheets with VBA code. I update the code frequently and have to go through all the Excel sheets and copy and paste the updates. Is there a way to store the code centrally and have the sheets update automatically? Best regards, Martin |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Store VBA-Code centrally
Gord Dibben schrieb:
If sheets in multiple workbooks see Chip Pearson's site. http://www.cpearson.com/excel/vbe.aspx That's it, I guess :-) Thanks and best regards Martin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Where to store VBA code for executing against xls in email? | Excel Programming | |||
Store code outside the workbook, is it possible? | Excel Programming | |||
Code to track changes by row and store | Excel Programming | |||
Store FilePath Inside Code | Excel Programming | |||
What method do you use to save/store your developed code? | Excel Programming |