Solved

Distributing Updates to VB/Excel Programs

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

706 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

14 Experts available now in Live!

Get 1:1 Help Now