Custom Ribbon

thes4s67

Board Regular
Joined
Aug 17, 2015
Messages
186
Hi everyone,

I created a Ribbion using Custom UI Editor. You can check it out here. My question is how would I be able to make this ribbon available to all my Excel workbooks. Currently it only works on a particular workbook that has all the code. I assume I would have to make an Excel plugin or addon to make it work on all my excel workbooks. What is the easiest way for a person who has basic VBA knowledge??
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi
Save your workbook with a custom ribbon to Excel AddIn (xlam) and add to your Excel autostarup folder or connect to Excel as AddIn.

Regards,
 
Upvote 0
Here is something I did.
1.Create yourself a UserForm and name it "Master"
2.Put in about five command buttons
3. Put this text in your Command Button: "Color My Cells"
4. Then put this script in your command button:

Code:
Private Sub CommandButton1_Click()
Me.Hide
Call Color_My_Cells
End Sub

Then create a module script like this:
Code:
Sub Show_Master()
Master.Show
End Sub

Put both your" Master" UserForm and your module script in your Personal file.
Now when you run the script "Show Master" it will cause your UserForm "Master" to pop up and when you click on the Command Button "Color My Cells" it will run your script "Color_My_Cells"

Then you could add several more Command Buttons to you Userform and be able to run any macro you want from this UserForm.

Just remember your UserForm and all your scripts must be in your personal Workbook. And then these scripts will all work from any WorkBook
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,123
Messages
6,189,112
Members
453,524
Latest member
AshJames

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