Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default User Upgrade Procedures

How are you experienced developers coping with upgrading your clients?
Most, if not all, of my future changes will be in the Modules, not the
worksheets. My current upgrade plan is something like this:

1. Have client open both upgrade and old workbooks.
2. Upgrade will have single sheet containing a command button. Sheet
may also contain the macro code or a call to a module routine.
3. Button will copy old workbook sheets (some protected, some not) to
upgrade.
4. One copied protected sheet will require adjusting formulas that will
retain the identity of the old workbook's filename (gathers data from
other sheets). Upgrade code will do this.
5. Last act of upgrade macro is to delete the upgrade sheet (if
possible, not sure how this can be done yet if code is contained in the
sheet itself).

Your input is greatly appreciated....

mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default User Upgrade Procedures

how about have the upgrade sheet make a copy of iitself and insert into the
eisting workbook...thats all the "installupgrade" button does.Then get your
client to run the upgrade from within the existing workbook and delete the
new upgrade workbook.The next time you have an upgrade delete the old upgrade
sheet before inserting the new one.
howzat?
--
paul
remove nospam for email addy!



"mike" wrote:

How are you experienced developers coping with upgrading your clients?
Most, if not all, of my future changes will be in the Modules, not the
worksheets. My current upgrade plan is something like this:

1. Have client open both upgrade and old workbooks.
2. Upgrade will have single sheet containing a command button. Sheet
may also contain the macro code or a call to a module routine.
3. Button will copy old workbook sheets (some protected, some not) to
upgrade.
4. One copied protected sheet will require adjusting formulas that will
retain the identity of the old workbook's filename (gathers data from
other sheets). Upgrade code will do this.
5. Last act of upgrade macro is to delete the upgrade sheet (if
possible, not sure how this can be done yet if code is contained in the
sheet itself).

Your input is greatly appreciated....

mike


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default User Upgrade Procedures

That would mean all my code would reside in a sheet. From what I've
read, that is not desirable. Most all code is in a general module. Is
there a way to simply replace a module?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default User Upgrade Procedures

i thought only the specific upgrade stuff would reside on the sheet.I dont
know if that is desireable or not it was just an idea.I beleive there is a
way to rewrite code with code.....Its above my head tho.I jstick to upgrading
certain parts of sheets
Just trying to put some ideas out there
--
paul
remove nospam for email addy!



"mike" wrote:

That would mean all my code would reside in a sheet. From what I've
read, that is not desirable. Most all code is in a general module. Is
there a way to simply replace a module?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default User Upgrade Procedures

You can replace a module via code.

With ActiveWorkbook.VBProject.VBComponents
.Remove .Item("OldModule")
.Import Filename:="C:\NewModule.bas"
End With

This code, of course, should not be in the module that is being
deleted.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"mike" wrote in message
oups.com...
That would mean all my code would reside in a sheet. From what
I've
read, that is not desirable. Most all code is in a general
module. Is
there a way to simply replace a module?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default User Upgrade Procedures

That certainly is better than what I had planned. Unfortunately,
providing the module in a BAS file exposes your code. I know. I've been
told just how unsecure securing my code with a password is! Still, it
would be nice to be able to simply import the module directly from a
workbook rather than a text file.

I surmise that I could include an upgrade function in a separate module
in an upgrade workbook with new code and a control that activates the
function. Otherwise the function is dead code. Guess I need to plan a
strategy!!

Thanks for everyones input. I'll keep looking back here in case new
ideas are posted.

best regards,
mike

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM
Ontime procedures ironmouse[_4_] Excel Programming 3 June 13th 05 09:41 AM
VBA Sub procedures lexiez Excel Programming 2 October 4th 04 04:21 PM
what's wrong with this sub procedures? active_x[_4_] Excel Programming 8 September 10th 03 05:25 AM
VBA -- procedures as arguments? Dave Ring Excel Programming 1 August 27th 03 02:27 AM


All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"