Solved

Distributing Updates to VB/Excel Programs

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

739 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