Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Best practice for deploying a VBA system used in multiple locations?

Hi All

I have three different depots where I work and they each have an
instance of my Excel VBA system. My Excel VBA is generic to each depot
but of course the data is different.

I want to maintain my code in one location and distribute easily to my
three depots when I need to make a change.

Currently I have been doing this at the module level and manually.
That is, I choose one of the systems as the master - only make changes
there and then when I want to deploy this to the other two depots I
delete all their modules and replace them with copies from the master
system This is slow, laborious and prone to error.

What is the best way for me to maintain one copy of my system yet
deploy it easily to all my different locations?

I thought that AddIns might be the way to go but my system does not
use any menus or command bars and I dont have time to change this.

The other thought I have had is to use Rob Bovey's CodeCleaner as I
beleive that this can be used to automate my current manual process.

Any ideas? What is the best practice?

Thanks for any ideas.
Chrisso

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default Best practice for deploying a VBA system used in multiple locations?

One way is to use one workbook for your code modules and a different
workbook for your worksheets and data. The workbook with the code can be
set so when it opens it automatically opens the workbook with the
worksheets. Then, to update the program, you need only distribute the
workbook with the code modules. This creates its own set of problems
because the code is constantly referring to sheets in a different workbook.
This can be made somewhat easier by using global variables for the sheets.
Sounds like you are far enough along that rewriting your code to do its work
on a second workbook would be a real chore. But it could be worth it in the
long-run, especially if you have time to work on it as time allows, for
future distribution. James

"Chrisso" wrote in message
ups.com...
Hi All

I have three different depots where I work and they each have an
instance of my Excel VBA system. My Excel VBA is generic to each depot
but of course the data is different.

I want to maintain my code in one location and distribute easily to my
three depots when I need to make a change.

Currently I have been doing this at the module level and manually.
That is, I choose one of the systems as the master - only make changes
there and then when I want to deploy this to the other two depots I
delete all their modules and replace them with copies from the master
system This is slow, laborious and prone to error.

What is the best way for me to maintain one copy of my system yet
deploy it easily to all my different locations?

I thought that AddIns might be the way to go but my system does not
use any menus or command bars and I dont have time to change this.

The other thought I have had is to use Rob Bovey's CodeCleaner as I
beleive that this can be used to automate my current manual process.

Any ideas? What is the best practice?

Thanks for any ideas.
Chrisso



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
Multiple Users - Different PC/Locations teelee Excel Worksheet Functions 2 January 7th 10 05:37 AM
save to multiple locations simultaneously MOSwannabe Excel Discussion (Misc queries) 1 October 29th 07 07:00 PM
Need help saving to multiple locations Bruise[_3_] Excel Programming 5 July 17th 07 05:26 PM
AutoFilter Best Practice when used in large files (slow system dow Dennis Excel Discussion (Misc queries) 2 February 17th 06 07:53 PM
How do I advance filter to multiple locations at once? imills Excel Worksheet Functions 3 February 1st 06 06:12 PM


All times are GMT +1. The time now is 12:40 PM.

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"