PC Review


Reply
Thread Tools Rate Thread

Add-in macro button assignment spontaneous change

 
 
Stephen
Guest
Posts: n/a
 
      15th Feb 2008
I have excel files that I and several others in my group maintain
using macros from an add-in file that are located on the network
drive. We run the macros using form buttons that have the macros
assigned to them. For example, one button might be assigned to N:/
Budgets/BudgetMacros.xla!ClearCells. The reason that this add-in is
on the network drive is that it allows me to make changes without
having to re-distribute the file every time.

The problem is, when we email the file to a client (clients do not use
the macros) and get it back from the client, the button assignment has
changed to reference the C: drive instead of the network drive.
Example above: C:/Budgets/BudgetMacros.xla!ClearCells (which, of
course, does not exist).

We've experimented here in the office, and the it seems that just
opening the file from an email causes the change to happen (even if
the person opening the email has the add-in loaded).

Any thoughts on how to prevent this from happening, or how to overcome
it in a way that is not overly cumbersome? (Right now, we have to
remove the old buttons, and copy & paste new ones in from a file that
has correct assignments.)

Thanks in advance for any suggestions.
 
Reply With Quote
 
 
 
 
Ker_01
Guest
Posts: n/a
 
      15th Feb 2008
Stephen-

I'm not surprised that the reference would change when opened on a PC that
doesn't have access to the macro. Has your team considered embedding a macro
within your workbook to test if the add-in is available, and if so, trigger
it from that local code? The button would be linked to the local code, of
course.

I'm not 100% sure that would work, but that's where I'd start if I had that
challenge in my environment.

HTH,
Keith

"Stephen" <(E-Mail Removed)> wrote in message
news:67dc63a8-c847-4b4b-b826-(E-Mail Removed)...
>I have excel files that I and several others in my group maintain
> using macros from an add-in file that are located on the network
> drive. We run the macros using form buttons that have the macros
> assigned to them. For example, one button might be assigned to N:/
> Budgets/BudgetMacros.xla!ClearCells. The reason that this add-in is
> on the network drive is that it allows me to make changes without
> having to re-distribute the file every time.
>
> The problem is, when we email the file to a client (clients do not use
> the macros) and get it back from the client, the button assignment has
> changed to reference the C: drive instead of the network drive.
> Example above: C:/Budgets/BudgetMacros.xla!ClearCells (which, of
> course, does not exist).
>
> We've experimented here in the office, and the it seems that just
> opening the file from an email causes the change to happen (even if
> the person opening the email has the add-in loaded).
>
> Any thoughts on how to prevent this from happening, or how to overcome
> it in a way that is not overly cumbersome? (Right now, we have to
> remove the old buttons, and copy & paste new ones in from a file that
> has correct assignments.)
>
> Thanks in advance for any suggestions.



 
Reply With Quote
 
Stephen
Guest
Posts: n/a
 
      15th Feb 2008
That is a great idea!

Thanks.


On Feb 15, 3:13*pm, "Ker_01" <ker...@newsgroup.nospam> wrote:
> Stephen-
>
> I'm not surprised that the reference would change when opened on a PC that
> doesn't have access to the macro. Has your team considered embedding a macro
> within your workbook to test if the add-in is available, and if so, trigger
> it from that local code? The button would be linked to the local code, of
> course.
>
> I'm not 100% sure that would work, but that's where I'd start if I had that
> challenge in my environment.
>
> HTH,
> Keith
>
> "Stephen" <seph...@gmail.com> wrote in message
>
> news:67dc63a8-c847-4b4b-b826-(E-Mail Removed)...
>
>
>
> >I have excel files that I and several others in my group maintain
> > using macros from an add-in file that are located on the network
> > drive. *We run the macros using form buttons that have the macros
> > assigned to them. *For example, one button might be assigned to N:/
> > Budgets/BudgetMacros.xla!ClearCells. *The reason that this add-in is
> > on the network drive is that it allows me to make changes without
> > having to re-distribute the file every time.

>
> > The problem is, when we email the file to a client (clients do not use
> > the macros) and get it back from the client, the button assignment has
> > changed to reference the C: drive instead of the network drive.
> > Example above: C:/Budgets/BudgetMacros.xla!ClearCells (which, of
> > course, does not exist).

>
> > We've experimented here in the office, and the it seems that just
> > opening the file from an email causes the change to happen (even if
> > the person opening the email has the add-in loaded).

>
> > Any thoughts on how to prevent this from happening, or how to overcome
> > it in a way that is not overly cumbersome? *(Right now, we have to
> > remove the old buttons, and copy & paste new ones in from a file that
> > has correct assignments.)

>
> > Thanks in advance for any suggestions.- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2000 custom toolbar button macro assignment =?Utf-8?B?RGFyeWw=?= Microsoft Excel Programming 2 12th Aug 2007 02:38 AM
Change dialog button assignment =?Utf-8?B?S3Jpc3RpbmU=?= Microsoft Excel Programming 0 18th May 2006 05:54 PM
Changing path of button macro assignment Otto Moehrbach Microsoft Excel Programming 2 28th Sep 2005 11:18 PM
VBA to change Button Macro assignment Ken Loomis Microsoft Excel Programming 2 6th Aug 2005 05:47 PM
Re: Macro assignment to button gets reassigned John Gittins Microsoft Excel Programming 1 5th Aug 2003 10:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:56 PM.