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

How can a code a macro which works on ne sheet. By this i mean that it is
accessible from any file you want and not just the one from which it is
created
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Global Macro

Hi Addy,

Any macro saved in your Personal.xls workbook will be avialable to all open
workbooks.

If you are recording the macro of interest, in the first dialogbox ("Record
Macro"), select 'Personal Macro Workbook' in the 'Store Macro in' dropdown.

If the Personal.xls file does not already exist, it will be created and
stored in your XLSTART folder.


---
Regards,
Norman


"Addy" wrote in message
...
How can a code a macro which works on ne sheet. By this i mean that it is
accessible from any file you want and not just the one from which it is
created



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

One way would be to put your code in a standard module and do not make
explicit references to one particular sheet, by referencing the activesheet
the code will work on the currently active worksheet.

E.g. change references like....... Sheets("Sheet1").Range("A1") to
ActiveSheet.Range("A1") etc....


--
Cheers
Nigel



"Addy" wrote in message
...
How can a code a macro which works on ne sheet. By this i mean that it is
accessible from any file you want and not just the one from which it is
created



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
Global Macro CAS Excel Discussion (Misc queries) 1 June 28th 07 07:16 PM
Global Macro Bo Rasmussen New Users to Excel 4 September 12th 05 03:48 PM
Global Macro dherne Excel Programming 6 July 11th 05 04:55 PM
How do I make a 'global' macro? Colin Higbie Excel Programming 5 November 6th 04 12:52 AM
Can't record Global Macro KathyB Excel Programming 0 June 13th 04 04:17 PM


All times are GMT +1. The time now is 08:18 AM.

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"