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


I am wanting to make a macro independent of any specific workbooks.

I would like the macro to be available for every workbook i start in
Excel.


Is this possible, if so how?


--
XCESIV
------------------------------------------------------------------------
XCESIV's Profile: http://www.excelforum.com/member.php...o&userid=24271
View this thread: http://www.excelforum.com/showthread...hreadid=544495

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default independent macros

A macro must be contained in a workbook, and that workbook must
be open in order to execute the code. Most people put common
procedures in their Personal.xls workbook, typically located in
C:\Program Files\Microsoft Office\Office\XLStart. Files in that
folder will automatically open when Excel starts.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"XCESIV"
wrote in message
...

I am wanting to make a macro independent of any specific
workbooks.

I would like the macro to be available for every workbook i
start in
Excel.


Is this possible, if so how?


--
XCESIV
------------------------------------------------------------------------
XCESIV's Profile:
http://www.excelforum.com/member.php...o&userid=24271
View this thread:
http://www.excelforum.com/showthread...hreadid=544495



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

Does this mean that, after writing the Macro in an open workbook, we
have to save it as: Personal.xls?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default independent macros

You will (probably) already have a WB called Personal.xls in your XLSTART
folder. All WBs in this folder are automatically opened when Excel starts.
So you can either save the macro to this WB or save your new WB to this
folder.
Either way, you macro will be available to all.

NickHK

wrote in message
ups.com...
Does this mean that, after writing the Macro in an open workbook, we
have to save it as: Personal.xls?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default independent macros


I have done this now and it works. Thanks heaps.

What about making this macro available to the workbooks that we have
already setup. The way it looks the macro is only availbe to new
workbooks we create from now on.

thanks again


--
XCESIV
------------------------------------------------------------------------
XCESIV's Profile: http://www.excelforum.com/member.php...o&userid=24271
View this thread: http://www.excelforum.com/showthread...hreadid=544495



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default independent macros

XCESIV,
These macros are available to all open WBs.
Open a previously created WB and call a macro in your Personal.xls.

NickHK

"XCESIV" wrote in
message ...

I have done this now and it works. Thanks heaps.

What about making this macro available to the workbooks that we have
already setup. The way it looks the macro is only availbe to new
workbooks we create from now on.

thanks again


--
XCESIV
------------------------------------------------------------------------
XCESIV's Profile:

http://www.excelforum.com/member.php...o&userid=24271
View this thread: http://www.excelforum.com/showthread...hreadid=544495



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
pivottable, independent filters? Pieter Excel Worksheet Functions 0 May 23rd 07 06:49 AM
Independent column widths Kathleen Excel Worksheet Functions 2 August 22nd 06 05:47 PM
Independent Lists... Corey New Users to Excel 2 July 10th 06 07:17 PM
Independent Column Widths California Excel Discussion (Misc queries) 1 September 23rd 05 08:03 PM
Run a .xla as a independent application triki Excel Programming 3 August 12th 05 05:15 PM


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