unhide rehide and password protect using VBA

sebby87

New Member
Joined
Jul 29, 2012
Messages
1
I have an excel spread sheet with 6 sheets. sheet2(home) is home page navigation sheet where i have put in a combo button which prompts for a password. I am very new to vba and really struggling and was hoping that maybe someone might be able to help me.

problem 1: I want sheet2(home) to always be the first sheet to open.
problem 2: When the correct password lets say "password" gets entered I want the macro to automatically unhide and unprotect all columns in all worksheets that have been protected with the password "password3"

I also want a macro called 'reprotect' to lock and then hide and password protect columns I:J on sheet 3 and columns m:n on sheet 4 etc all with password "password3"
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,216,081
Messages
6,128,695
Members
449,464
Latest member
againofsoul

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