Call Macros that are not in the current or any open workbook

obiron

Active Member
Joined
Jan 22, 2010
Messages
469
Background:
I generate a lot of spreadsheets by exporting from Reporting Services reports with bookmarks. (The project to deploy Reporting services has been delayed but I still need to send out the reports....)

These reports start with a navigation page with hyperlinks to different worksheets. However when SSRS exports the reports each worksheet is simply called sheet1, sheet2, sheet3 ...

Objective;
I want to have a macro that changes the names of the worksheets to reflect the text of the hyperlinks. I want to store this macro in a 'master' workbook (or module or bas file) but I don't want to have to open the master or include the bas in the generated file. Is this possible.
(I'm not looking for help on writing the macro - yet) just an understanding of how to run a remote macro without embedding it.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,585
Messages
6,179,697
Members
452,938
Latest member
babeneker

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