VBA - Open certain sheets based on a range

philipk55

New Member
Joined
Aug 12, 2015
Messages
6
Hi there,

I'm looking for advice on the best way to go about constructing a module to get my desired result. I have a commissions file that i want managers to be able to go in and review the commissions. Each manager will have a username and password.

Each manager will require access to different sheets which may change over time as employees come and go. i have a table with the managers name in column A, the employee's in column B and the sheet name in column C. Any suggestions on VBA code that upon successful password input it will open up each sheet in column C that matches back to the managers name in column A?

Or is there a better/easier way of laying this out?

Thanks,

Philip
 

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
Hi,
Have a look here:https://www.mrexcel.com/forum/excel...word-protect-viewing-multiple-worksheets.html
with solution I provided for another with a similar requirement to yours.

Solution uses network username to display their sheets which avoids entering passwords & hopefully, you can adapt to meet your specific project need.

Be mindful that Excel is not a secure platform & any of your users that have good working knowledge of Excel can access the other worksheets.

Hope Helpful

Dave
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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