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

Hello,

Is there a way to reference macros in other files without
specifying what file that they are in? Somewhat like a
reference macro which you can use in any file on your PC.
Does anyone know the code for this? Thank You
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Referencing Macros

Hi John

If you want to use the macro in all your workbooks you can copy the macro in
your personal.xls.
This is a (normal) hidden workbook that is loaded automatically by Excel.
When you record a macro, you have the option of recording it to your
Personal Macro Workbook.
The file, Personal.xls, is stored in your \XLStart directory.

The easiest is to record a dummy macro and choose Personal Macro Workbook.
Excel create the file for you this way.
Then copy your macro in this file and delete the dummy macro.

You can also save the file with the macro as a add-in

--
Regards Ron de Bruin
http://www.rondebruin.nl


"John" wrote in message ...
Hello,

Is there a way to reference macros in other files without
specifying what file that they are in? Somewhat like a
reference macro which you can use in any file on your PC.
Does anyone know the code for this? Thank You



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



"Ron de Bruin" wrote in message
...
Hi John

If you want to use the macro in all your workbooks you can copy the macro

in
your personal.xls.
This is a (normal) hidden workbook that is loaded automatically by Excel.
When you record a macro, you have the option of recording it to your
Personal Macro Workbook.
The file, Personal.xls, is stored in your \XLStart directory.

The easiest is to record a dummy macro and choose Personal Macro Workbook.
Excel create the file for you this way.
Then copy your macro in this file and delete the dummy macro.


But you still have to reference the file to use it.

Add-ins are the way to go.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Referencing Macros

Hi Bob

But you still have to reference the file to use it.


But you know the name<g

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bob Phillips" wrote in message ...


"Ron de Bruin" wrote in message
...
Hi John

If you want to use the macro in all your workbooks you can copy the macro

in
your personal.xls.
This is a (normal) hidden workbook that is loaded automatically by Excel.
When you record a macro, you have the option of recording it to your
Personal Macro Workbook.
The file, Personal.xls, is stored in your \XLStart directory.

The easiest is to record a dummy macro and choose Personal Macro Workbook.
Excel create the file for you this way.
Then copy your macro in this file and delete the dummy macro.


But you still have to reference the file to use it.

Add-ins are the way to go.




  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Thanks You -- Works Well


-----Original Message-----
Hi Bob

But you still have to reference the file to use it.


But you know the name<g

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bob Phillips" wrote

in message ...


"Ron de Bruin" wrote in

message
...
Hi John

If you want to use the macro in all your workbooks

you can copy the macro
in
your personal.xls.
This is a (normal) hidden workbook that is loaded

automatically by Excel.
When you record a macro, you have the option of

recording it to your
Personal Macro Workbook.
The file, Personal.xls, is stored in your \XLStart

directory.

The easiest is to record a dummy macro and choose

Personal Macro Workbook.
Excel create the file for you this way.
Then copy your macro in this file and delete the

dummy macro.


But you still have to reference the file to use it.

Add-ins are the way to go.




.



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
referencing a different tab by referencing a list in the current s Kevin Excel Worksheet Functions 3 July 6th 07 07:57 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Referencing Cells in Macros Gerry[_7_] Excel Programming 2 October 24th 03 01:25 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


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