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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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