Solved

Distributing Updates to VB/Excel Programs

Posted on 2002-05-13
5
151 Views
Last Modified: 2010-05-02
I've written 2 Excel spreadsheets with VB code that have been distributed to other users.  Each user uses multiple copies of these spreadsheets.  When I develop updates to the programs, there are dozens of copies of the spreadsheets that require updated code.  Most users are not familiar with VB, so manually copying code from one file to the other is not an option.

I'm looking for a solution where all the user has to do is click another button and the code is copied from one file to another.  Because the worksheets are typically copied from one file to another, my code is stored within the worksheet rather than modules.  Also, I'm using command buttons and their Click events to trigger the macro.

Any suggestions??

Thanks,
Brian
0
Comment
Question by:bv31723
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7007180
It is not a simple task!
First, you need to save current "version" of worksheet in somewhere (maybe an ini file)
Second, it is better to store the code in modules, you can "easily" access it.
To me, the best you can do is using templates to do the work and with vb/vba replacing existing sheets using new templates.
As i said, not an easy task, you need to open every old sheet, update to new ones and save them.
0
 

Author Comment

by:bv31723
ID: 7008327
Please allow me about one week to think about how to implement your suggestion.  In the meantime, I'm still open to other suggestions.

Thanks,
Brian
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 7008419
take your time!.
Besides, this problem could be solved now but the next time you create a new version, you will have to rewrite the update thing again.

Besides, it would be a good idea to think in change the design.
Doing so, you have to update only the add in. I think that better to add buttons to existing sheets, update every and all and so on, you need an Add-in (for instance, like Solver) with a toolbar.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7017307
Why did you punish me with "B" grade?
If you need more help, ask for further details would be enought.
Don't you know how to create an add-in? I have example of how to do it.
0
 

Author Comment

by:bv31723
ID: 7017329
Sorry Richie, I clicked the wrong grade.  Should have been an A.  How do I change the grade?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now