+ Reply to Thread
Results 1 to 9 of 9

Updates and Modification to Existing Project

  1. #1
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Updates and Modification to Existing Project

    I am about finished automating a workbook that will be used by several departments in my company. Each department will have different starting information entered into the spreadsheet, and will have their own "master" sheet saved.

    I am looking for a way to update each of these "master" sheets when I make a change to the macros, or add additional functionality. I would like to avoid having to re-enter all of the starting information (replace their master with my updated one) when this happens.

    Thanks in advance for any assistance.
    Last edited by Pherion; 07-28-2009 at 01:11 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Updates and Modification to Existing Project

    You could put the code in an add-in on a network share.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Updates and Modification to Existing Project

    I am having dificulty locating a description of how a Network Share and Add-In work. Would you be able to expand the idea some?

    I am really looking for something that can "merge" my updates into the alreay existing workbooks.

  4. #4
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Updates and Modification to Existing Project

    Ok, I have a solution:

    I can export the UserForms and the Modules to a seperate directory, then just import them into the individual spreadsheets, thereby updating the macros without losing the infomation contained in the spreadsheet itself.

    Only problem. The import process will not overwrite existing code. So I need to delete all the existing code before I can import the new code. Not exactly what I was looking for, but it will work!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Updates and Modification to Existing Project

    That's a really error-prone way to do it.

    My thought was you could create an add-in (see http://www.fontstuff.com/VBA/vbatut03.htm) and save it read-only on a network drive accessible to all. I don't think people having the add-in installed in an active Excel session would lock the file, but you'd have to check. Then just update the add-in as necessary.
    Last edited by shg; 07-24-2009 at 02:30 PM.

  6. #6
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Updates and Modification to Existing Project

    That sounds good, but let me make sure I understand what is going on.

    The Add-In will be a file that only contains my macro data, and will load when the user launches Excel (even if they do not launch the particular sheet that the macros were written for).

    In order to setup the user to use the Add-In I would have to set their individual Excel settings to load the specific Add-In (on a network drive).

    To update all users, I would only need to update the single Add-In that is accessed by them all.

    Is that correct?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Updates and Modification to Existing Project

    The add-in contains the macros, not the data.

    The users would install the add-in, just like they do, for example, the Analysis ToolPak.

  8. #8
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Updates and Modification to Existing Project

    This sounds good. I'll have to fool around with it when I get a chance. Thanks!

  9. #9
    Registered User
    Join Date
    07-01-2009
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Updates and Modification to Existing Project

    I saved a copy of my spreadsheet under a differnt name and removed all of the macros from it. I then went back to my origonal spreadsheet, and saved it as an Add-In. I am running into a few problems attempting to make the Add-In work under the test spreadsheet (which has no macros of its own).

    1. When I load the Add-In through Excel, it forces me to copy it to my local disk, meaning that I cant automaticlay update the add-in on everyone's system. They would actualy have to re-load the Add-In to updated it.

    2. Even after the Add-In is loaded, the macros do not show up.

    Any sugesstions?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1