Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Generic Macro

Hi,

Ive created a macro in order to format a workbook, the
question i have is, is it possible to link to this macro
from the menu bar. I know it is possible to create a
button and link to a macro within a file but the problem i
have is that a new file is creted about twice a month and
so dont want to have to keep copying the macro across from
file to file. Is it possible to say attach the macro to
excel itself so we can run the macro on any book that we
wish once its loaded up? (i.e. not contained within one
particular exdcel work book.)

Cheers

Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Generic Macro

Steve,

Just put it in the Personal.xls workbook, then add a button and link it to
the macro there. It will then be part of your Excel application.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Steve" wrote in message
...
Hi,

Ive created a macro in order to format a workbook, the
question i have is, is it possible to link to this macro
from the menu bar. I know it is possible to create a
button and link to a macro within a file but the problem i
have is that a new file is creted about twice a month and
so dont want to have to keep copying the macro across from
file to file. Is it possible to say attach the macro to
excel itself so we can run the macro on any book that we
wish once its loaded up? (i.e. not contained within one
particular exdcel work book.)

Cheers

Steve



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Generic Macro

Thanks Steve this helped me out too. But now when I try to edit this macro
it tells me that I first have to unhide the workbook to edit it. Now the
problem is I do not remember which workbook I used originally to create
this global macro.

Please could you help?
Thanks
Ronnie

"Bob Phillips" wrote in message
...
Steve,

Just put it in the Personal.xls workbook, then add a button and link it to
the macro there. It will then be part of your Excel application.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Steve" wrote in message
...
Hi,

Ive created a macro in order to format a workbook, the
question i have is, is it possible to link to this macro
from the menu bar. I know it is possible to create a
button and link to a macro within a file but the problem i
have is that a new file is creted about twice a month and
so dont want to have to keep copying the macro across from
file to file. Is it possible to say attach the macro to
excel itself so we can run the macro on any book that we
wish once its loaded up? (i.e. not contained within one
particular exdcel work book.)

Cheers

Steve





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Generic Macro

Just go into WindowUnhide and try each hidden workbook one by one.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rohinton Sarkari" wrote in message
...
Thanks Steve this helped me out too. But now when I try to edit this

macro
it tells me that I first have to unhide the workbook to edit it. Now the
problem is I do not remember which workbook I used originally to create
this global macro.

Please could you help?
Thanks
Ronnie

"Bob Phillips" wrote in message
...
Steve,

Just put it in the Personal.xls workbook, then add a button and link it

to
the macro there. It will then be part of your Excel application.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Steve" wrote in message
...
Hi,

Ive created a macro in order to format a workbook, the
question i have is, is it possible to link to this macro
from the menu bar. I know it is possible to create a
button and link to a macro within a file but the problem i
have is that a new file is creted about twice a month and
so dont want to have to keep copying the macro across from
file to file. Is it possible to say attach the macro to
excel itself so we can run the macro on any book that we
wish once its loaded up? (i.e. not contained within one
particular exdcel work book.)

Cheers

Steve







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
Generic Macro WildWill Excel Discussion (Misc queries) 7 February 2nd 10 02:21 PM
Generic Macro that can rows of zeroes Daniel Excel Discussion (Misc queries) 0 August 7th 08 02:09 PM
Change a specific code to generic in VB macro Sue Excel Discussion (Misc queries) 2 April 23rd 08 06:56 PM
Generic reference in a Macro Harry's GMail World Excel Discussion (Misc queries) 2 April 17th 07 11:07 PM
Creation of a Generic Macro Sondra Excel Worksheet Functions 1 September 13th 05 10:40 PM


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