PC Review


Reply
Thread Tools Rate Thread

Copying a macro to another spreadsheet

 
 
Gerry
Guest
Posts: n/a
 
      4th Jun 2007
I have a macro (assigned to a button) within my excel spreadsheet. I want
to give this macro (and button) to several my colleagues for them to insert
into their spreadsheet. What is the easiest way of doing this?

I right clicked on my button and selected Copy. I then loaded up one of the
spreadsheets and pasted it in. Looked good. Button and Macro worked in her
sheet. However, one of the "side effects" was that when she clicked the
button it opened my spreadsheet on her computer. (we are on a network and
our spreasdsheets are in the same directory). Obvioulsly the button I
copied and pasted is linked to my spreadsheet. I'd like to divorce that to
ensure my colleagues spreadsheets are "stand alone".

Thanks


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      4th Jun 2007
Hi Gerry,

Jan Karel Pieterse wrote this article:

http://www.jkp-ads.com/Articles/DistributeMacro00.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Gerry" <(E-Mail Removed)> wrote in message news:sb2dna0-(E-Mail Removed)...
|I have a macro (assigned to a button) within my excel spreadsheet. I want
| to give this macro (and button) to several my colleagues for them to insert
| into their spreadsheet. What is the easiest way of doing this?
|
| I right clicked on my button and selected Copy. I then loaded up one of the
| spreadsheets and pasted it in. Looked good. Button and Macro worked in her
| sheet. However, one of the "side effects" was that when she clicked the
| button it opened my spreadsheet on her computer. (we are on a network and
| our spreasdsheets are in the same directory). Obvioulsly the button I
| copied and pasted is linked to my spreadsheet. I'd like to divorce that to
| ensure my colleagues spreadsheets are "stand alone".
|
| Thanks
|
|


 
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
Macro to copy and append spreadsheet changes to new spreadsheet Journey Microsoft Excel Misc 1 13th Jun 2008 04:33 PM
copying just the macro from one spreadsheet to another sonny Microsoft Excel Misc 1 27th Feb 2008 07:48 PM
Macro copying cells to a list in another spreadsheet =?Utf-8?B?TWFj?= Microsoft Excel Programming 1 17th May 2006 11:18 PM
Is there a way to insert a formula, password or macro in an excel spreadsheet that will automatically delete the spreadsheet? oil_driller Microsoft Excel Misc 1 8th Feb 2005 09:34 AM
stuck on final prat of spreadsheet "macro copying cells" alan_bourne Microsoft Excel Programming 4 17th Nov 2003 09:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:31 AM.