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

Hi,
I need to create a macro which could be used for all excel sheets.
Is this possible.
Thanks..

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Creating Global excel macros

Yes, it is possible, just place it in personal.xls as a module and it will
be visible from all of the worksheets.
Tomek

"Sebastian_var " wrote in
message ...
Hi,
I need to create a macro which could be used for all excel sheets.
Is this possible.
Thanks...


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Creating Global excel macros

If you want to run it from VBA, the format is

Application.Run "'Personal.xls'!Test"

If the macro has arguments, you use

Application.Run "'Personal.xls'!Test", "Goodbye"


--

HTH

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

"Tomek" wrote in message
...
Yes, it is possible, just place it in personal.xls as a module and it will
be visible from all of the worksheets.
Tomek

"Sebastian_var " wrote in
message ...
Hi,
I need to create a macro which could be used for all excel sheets.
Is this possible.
Thanks...


---
Message posted from http://www.ExcelForum.com/





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Creating Global excel macros

Sebastian

In addition to storing in the Personal.xls workbook, make sure the code does
not refer to hard-coded items such as worksheet names, workbook names, cell
references etc.

Use relative references as Offset, Activecell, Activesheet.

If recording the macros, toggle the "Relative Reference" button to "ON"

Gord Dibben Excel MVP

On Tue, 10 Feb 2004 05:01:38 -0600, Sebastian_var
wrote:

Hi,
I need to create a macro which could be used for all excel sheets.
Is this possible.
Thanks...


---
Message posted from http://www.ExcelForum.com/


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
creating macros in excel ryanzoo06 Excel Discussion (Misc queries) 1 May 15th 07 07:43 PM
Global macros Ken Excel Discussion (Misc queries) 3 January 5th 07 11:21 PM
global Macros GKW in GA Excel Discussion (Misc queries) 2 September 20th 05 04:42 AM
Creating an interactive Global Map in Excel Yasmin Excel Discussion (Misc queries) 0 March 10th 05 01:39 PM
Creating Global Macros Mark L-Z Excel Programming 3 August 5th 03 10:08 PM


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