Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protect Multiple Sheets in Excel 1

Status
Not open for further replies.

Rams06

Technical User
Sep 24, 2004
12
0
0
US
I have multiple sheets in a workbook in Excel..... how can I protect the same colums on all the sheets, at the same time? Is that possible? (Skip the Format Cells-Protection steps, I know that stuff)
 
You could create a macro to lock, and then another macro to unlock.
 
Thanks...... I did. I just run the macro at each sheet tab.
 
Wrap your macro with this:
Code:
For i = 1 To ActiveWorkbook.Worksheets.count
    Sheets(i).Activate
'...
'Your Code
'...
Next i


John

That which does not kill me postpones the inevitable. [thumbsup2]
 
Excel Question:

I have multiple salespersons data in one workbook....

How can I create multiple users passwords so when they open the workbook they have to enter their salepersons code and password and ONLY their worksheet "pops" up?

This is the ideal Scenario:

I e-mail all the salespeople the same workbook but when they click to open the Excel workbook it asks them for their salesman code and password. After they enter their username and password.... it only shows them their sheet and hides the rest.

Thanks alot for your help.
 
For starters, check out this thread:
thread707-922793

It's a pretty busy Monday so far...I don't have time to write up anything much just now, but the linked thread should give you a starting point.

John

That which does not kill me postpones the inevitable. [thumbsup2]
 
Search Results

Sorry, there is no thread by the number 707-922793.

----------------------------------------------------
How simple life could be but here it doesn't begins
 
This is not difficult:
Hide all the worksheets except one.
Write your own code to ask the user for a password.
Make visible only the sheet that matches the user

For better security use xlSheetVeryHidden, this will not allow the users to unhide anyone elses sheet without using code:

Application.Worksheets("Sheet1").Visible = xlVeryHidden

or

Application.Worksheets("Sheet1").Visible = xlSheetVisible



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top