Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Giving Excel Macros to other people

Status
Not open for further replies.

skygirl65

Technical User
Jul 18, 2004
32
US
I have macros in my personal workbook that my co-workers need to use. we are not on a network. How can I copy them and e-mail them to someone else and how do they get it into their personal workbook?

 


Hi,

You can export the module and attach it to your email. Howeverm since the file extension is .bas, some email clients or virus software might reject the attachnment.

You can also COPY the code and past it into the body of your emial. Then the user must copy 'n' paste from the emaile into a MODULE in their PERSONAL.xls.

Skip,
[sub]
[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue][/sub]
 
Or save your personal.xls with a different name (say, TeamMacros.xls and share this file with then in the normal way. If they have this file open then the macros will be available to them. You can set the workbook up so it is hidden - then users won't accidentally use it as a blank (new) workbook.


Gavin
 


Gavin,

"we are not on a network"

Skip,
[sub]
[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue][/sub]
 
Sorry I meant give them this file using a floppy disk, memory stick etc.!


Gavin
 
Personally, I'd copy your personal.xls and rename it. Then get all the code you want to share in it into a single module, and name the module so that it is obvious what it is.

Email them your new file and have them open it in Excel. Assuming they already have a personal.xls then they can simply use ALT+F11 to go into the VBE, and then drag that one module from your file to their personal.xls

Then just unhide and close the other file and delete it.

Regards
Ken................

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top