Can macro/procedure be stored externally?

hon

Board Regular
Joined
Oct 10, 2005
Messages
73
Just want to find out if it is possible to store a macro/procedure externally(globally) so that any excel work book can run it.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi

IT can be stored as an addin, or in the personal.xls workbook. Both of these will allow any book to run them. Another alternative would be to create a DLL.....


Tony
 
Upvote 0
Hi Tony

Could you please give me some examples on how to achieve it? I would like to be able to maintain just one global macro so that any changes to it are immediately available to all workbooks referencing it.

thanks
Hon
 
Upvote 0
Tony, it is good stuff. I am almost there. I just want to know if it is possible to have that personal.xls stored on the network so that I don't have to copy it to everyone's PC.
 
Upvote 0
Another question. I created a macro and stored it in personal.xls. But how do I reference it in another workbook?
 
Upvote 0
Hi

I don't think you can use the personal.xls for general consumption. YOu will have to use an addin (not too sure about this). If you have the addin on a network, then each user will have to enable it in the tools, addins. To reference things from a macro, go tools, references and bring in the addin. It can then be a normal call.


Tony
 
Upvote 0
Hi Tony

Forget about the network issues. Is it still possible to call the macro stored in the personal.xls from the active workwork?

Thanks
Hon
 
Upvote 0
yuo can call a macro from another file like this
Code:
Application.Run ("personal.xls!macroname")
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top