Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Sharing Macros in Excel

I am running Excel 2000. I've been able to create a macro
to put the pathname in the footer, and assign that macro
to a toolbar in order to make it available in any
workbook, but as the macro runs, the workbook in which the
macro was originally created is opened, and remains open.

I would like to make the execution cleaner in order to
share the macro with others in my office with a minimum of
confusion about its execution. Is there any way to create
a macro such that it does not require that the original
workbook be opened? Or such that it automatically closes
the workbook that it opened once the macro in question is
executed?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Sharing Macros in Excel

Jenny

Both are possible, but probably the best way to do this is to save the file
as an add-in and then people can share it via ToolsAdd-Ins.

I'm not sure of your code, but standard policy in code for add-ins will
reference the ThisWorkbook Object rather thanone specifically by name.
Alternatively you may wish to refer in it to the ActiveWorkbook,
ActiveSheet, ActiveCell, etc

Difficult to know without seeing code

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS



Jenny wrote:
I am running Excel 2000. I've been able to create a macro
to put the pathname in the footer, and assign that macro
to a toolbar in order to make it available in any
workbook, but as the macro runs, the workbook in which the
macro was originally created is opened, and remains open.

I would like to make the execution cleaner in order to
share the macro with others in my office with a minimum of
confusion about its execution. Is there any way to create
a macro such that it does not require that the original
workbook be opened? Or such that it automatically closes
the workbook that it opened once the macro in question is
executed?



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
Sharing Macros enna49 Excel Worksheet Functions 1 February 19th 10 01:03 PM
sharing macros Whitney Excel Discussion (Misc queries) 3 June 28th 08 09:47 AM
Sharing Macros Russ Excel Discussion (Misc queries) 2 August 9th 05 02:58 AM
Sharing workbook with macros Josue Osuna Excel Discussion (Misc queries) 0 May 25th 05 12:17 AM
sharing macros fabulousk Excel Discussion (Misc queries) 3 March 7th 05 10:05 PM


All times are GMT +1. The time now is 11:35 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"