How to load custom Ribbon based on user

Agoodman

New Member
Joined
Feb 26, 2015
Messages
3
Hi Everyone,

I've been a long time user of MrExcel and all sorts of ideas and suggestions and fixes... for that I say a hearty THANK YOU!

Today however I can't seem to find the answers I seek. I have become well versed in Ron de Bruin's examples, and I have my custom ribbon built, and functions perfectly.

Here's my dilemma, I cannot find an example or instruction on how to call a custom ui based on the user opening the file.

Example:

when I open the file, I would like the entire ribbon to open as normal and anyone else, gets the "Dictator" treatment of having no ribbon and no backstage, using a simple if statement...

Code:
if Application.Username = "Doe, John" Then goto loadnormal ELSE goto lockdown

Anyone have any ideas how to accomplish this?


Thanks in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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