Solved

Distributing Updates to VB/Excel Programs

Posted on 2002-05-13
5
152 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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