Popup Workbook Selector

lordterrin

Board Regular
Joined
Mar 21, 2012
Messages
155
Hi There,

I have a "macro sheet" that holds all my macros. I've created buttons to apply people to visually run a variety of macros on different worksheets, however I cannot pre-define which worksheet they'll want to run a macro on.

I've found the following code which ALMOST does what I want:

Code:
Dim ws As Worksheet
        Application.CommandBars("Workbook Tabs").ShowPopup
    Set ws = ActiveSheet

but this only shows a popup of the worksheets in the current workbook. I want the popup to allow the user to select any workbook that is open - then run the macro on that workbook.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,195,962
Messages
6,012,585
Members
441,713
Latest member
Dave353

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
Top