Solved

Distributing Updates to VB/Excel Programs

Posted on 2002-05-13
5
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

740 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