Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Updating the code in multiple workbooks

I have dozens of Excel spreadsheets that contain VBA code and buttons,
is there an easy way to update all of them to the latest version of
the VBA code?

I want to a button and a new function to all of them. Is there any way
to automate this?

Phil Hibbs.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Updating the code in multiple workbooks

Phil,

I put all my UDFs and routines into one spreadsheet with a custom toolbar,
save it as an add-in an then distribute this to all my users. That way I can
modify and add to a master spreadsheet and then re-save it as an add-in with
version control to be redistributed.

Might be worth considering rather than adding the same code to several
different places.

"Phil Hibbs" wrote:

I have dozens of Excel spreadsheets that contain VBA code and buttons,
is there an easy way to update all of them to the latest version of
the VBA code?

I want to a button and a new function to all of them. Is there any way
to automate this?

Phil Hibbs.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Updating the code in multiple workbooks

Sam Wilson wrote:
I put all my UDFs and routines into one spreadsheet with a custom toolbar,
save it as an add-in an then distribute this to all my users. That way I can
modify and add to a master spreadsheet and then re-save it as an add-in with
version control to be redistributed.


I've considered making it an add-in but I suspect there are version
compatibility issues here - my client uses an older version of Excel,
and last time I tried to install an add-in that I had created on a
client PC, it crashed Excel. I now have another PC with the client's
build on it so I will try creating the add-in on that PC.

Making it an add-in is a barrier, though, there's a big difference
between "Open this spreadsheet and press the button on the sheet" and
"Make sure you un-install the old add-in, then install the new
version, then open this spreadsheet and press Button X on the
Toolbar".

How do your users know whether they need to update the add-in?

Phil Hibbs.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Updating the code in multiple workbooks

They get sent an e-mail... It would be easy enough to add a sub to check a
shared location and warn the user if they were out of date, then all you'd
have to do is remember to update that location.


"Phil Hibbs" wrote:

Sam Wilson wrote:
I put all my UDFs and routines into one spreadsheet with a custom toolbar,
save it as an add-in an then distribute this to all my users. That way I can
modify and add to a master spreadsheet and then re-save it as an add-in with
version control to be redistributed.


I've considered making it an add-in but I suspect there are version
compatibility issues here - my client uses an older version of Excel,
and last time I tried to install an add-in that I had created on a
client PC, it crashed Excel. I now have another PC with the client's
build on it so I will try creating the add-in on that PC.

Making it an add-in is a barrier, though, there's a big difference
between "Open this spreadsheet and press the button on the sheet" and
"Make sure you un-install the old add-in, then install the new
version, then open this spreadsheet and press Button X on the
Toolbar".

How do your users know whether they need to update the add-in?

Phil Hibbs.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Updating the code in multiple workbooks

I have investigated the Excel4MacroSheets property and the Modules
property of the Application but these appear to be empty lists. I was
hoping one or other would contain a list of the macro modules and the
text of the macro code so I could update that.

Phil Hibbs.
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
Updating Workbooks from multiple links Workbooks TimJames Excel Worksheet Functions 1 December 15th 07 03:34 PM
Updating multiple linked workbooks dk New Users to Excel 1 June 9th 06 12:33 AM
Updating Multiple Workbooks Jason Excel Programming 7 November 3rd 05 11:13 PM
Updating Macro's in Multiple Workbooks Trefor Excel Programming 5 November 3rd 05 02:06 PM
VBA code in multiple workbooks Jon[_14_] Excel Programming 1 January 7th 04 04:29 PM


All times are GMT +1. The time now is 06:45 AM.

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"