Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Excel Add-Ins... Distribution and Overwriting old Versions

Kaisies

I hate to be the bearer of bad tidings but if you've never dealt with any
VBA code before than you've got a bit of work in front of you. Might I
suggest that you grab a good book or two, work through them with some sample
projects and learn from the mistakes that we all make. Only then attack this
project you are working on.
Good Luck

"Kaisies" wrote:

I figured thats what it might come to.. I've never seen any VBA code (I'm
just learning from books :( ) to delete files and copy files, also to make
matters worse, everyones user name is different (the Windows XP user name)
and since the .xla is stored in /documents and settings/username/ etc I'd
need to grab the user name somehow....

Guess I'll go digging some more :D

"OfficeHacker" wrote:

Hi Kaisies,

There's several ways you can handle this.

I typically keep the add-in xla on a file server. Whe a user starts Excel it
grabs a copy of the xla (not the original) and loads this into memory. When I
need to update the add-in I need simply to copy the new xla over the old
using windows explorer. I then send an email to each of the users advising
that they need to re-start Excel.

Having the xla on the C: drive makes ongoing updates more difficult (as you
are probably dicovering). To work around this situation you can develop an
Excel workbook which you can email to the users each time the add-in changes.
This workbook should:

1) display a message to the user as soon as it is opened to confirm it can
perform the update (it's always nice to ask),

2) via VBA code, unregister the existing add-in.

3) Delete the old, now unregistered add-in and copy the updated version from
a file server to the appropriate location

4) Register the newly copied xla with Excel

The only thing the user has to do is open the spreadsheet you email to them
and when the message box appears click either Yes or No as to whether they
wish to upgrade the add-in.

Good luck

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
Excel 2007 overwriting Hidden Rows Fin Excel Worksheet Functions 1 April 20th 09 05:49 PM
OVERWRITING A WORKSHEET + EXCEL 2003 Neil Holden Excel Discussion (Misc queries) 1 October 8th 08 10:54 AM
Overwriting an existing Excel workbook Jenni Excel Discussion (Misc queries) 6 January 5th 07 06:32 PM
Please include fonts from previous versions ('98) in new versions JJBQ Excel Discussion (Misc queries) 3 October 8th 05 07:19 PM
can i get back overwriting excel from my hardisk faizal Excel Discussion (Misc queries) 1 July 8th 05 09:47 AM


All times are GMT +1. The time now is 08:13 PM.

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

About Us

"It's about Microsoft Excel"