PC Review


Reply
Thread Tools Rate Thread

Best practice for deploying a VBA system used in multiple locations?

 
 
Chrisso
Guest
Posts: n/a
 
      7th Sep 2007
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 With Quote
 
 
 
 
Zone
Guest
Posts: n/a
 
      7th Sep 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is best practice for using one of multiple .dll's Steve Ricketts Microsoft C# .NET 4 17th May 2010 07:48 PM
DB file locations when deploying Jay Microsoft Access 6 7th Jan 2009 07:21 AM
Best practice for deploying upgrades =?Utf-8?B?cmVkZWFnbGU=?= Microsoft VB .NET 2 10th Nov 2006 03:44 PM
How to do multiple network connections for multiple locations Ken Leonard Windows XP Networking 5 28th Jun 2004 10:22 PM
Best practice - Multiple forms or one? =?Utf-8?B?UGV0ZXIgSm9uZXM=?= Microsoft Dot NET Framework Forms 0 15th Mar 2004 10:11 PM


Features
 

Advertising
 

Newsgroups
 


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