Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Can I protect all excel tabs in a file with one password entry

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?


--

Dave Peterson
  #2   Report Post  
Posted to microsoft.public.excel.misc
sld sld is offline
external usenet poster
 
Posts: 10
Default Can I protect all excel tabs in a file with one password entry

if i used the protect all ws macroe, would that not put the same password on
all ws?

"Dave Peterson" wrote:

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Can I protect all excel tabs in a file with one password entry

Depends on if that worked correctly and if anybody/any code changed the
password.

I'd still bet that the password isn't what you think.

SLD wrote:

if i used the protect all ws macroe, would that not put the same password on
all ws?

"Dave Peterson" wrote:

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?


--

Dave Peterson


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
sld sld is offline
external usenet poster
 
Posts: 10
Default Can I protect all excel tabs in a file with one password entry

Where do I insert the line you sugest?

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


"Dave Peterson" wrote:

Depends on if that worked correctly and if anybody/any code changed the
password.

I'd still bet that the password isn't what you think.

SLD wrote:

if i used the protect all ws macroe, would that not put the same password on
all ws?

"Dave Peterson" wrote:

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets
msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws

That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?

--

Dave Peterson


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Can I protect all excel tabs in a file with one password entry

right where I wrote it. Just above the line causing the trouble.

Then when/if the line fails, you'll remember the last worksheet name that was
shown to you. That's the one to check.

SLD wrote:

Where do I insert the line you sugest?

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


"Dave Peterson" wrote:

Depends on if that worked correctly and if anybody/any code changed the
password.

I'd still bet that the password isn't what you think.

SLD wrote:

if i used the protect all ws macroe, would that not put the same password on
all ws?

"Dave Peterson" wrote:

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets
msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws

That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
sld sld is offline
external usenet poster
 
Posts: 10
Default Can I protect all excel tabs in a file with one password entry

This is working, but when you have over 100 tabs it is hard to keep track of
when the last mesege box is going to error out on me. Is there a line that
I can enter that will give me a report that i can clearly see what was the
last tab, or can it take me to the tab that does not have the correct
password?

"Dave Peterson" wrote:

right where I wrote it. Just above the line causing the trouble.

Then when/if the line fails, you'll remember the last worksheet name that was
shown to you. That's the one to check.

SLD wrote:

Where do I insert the line you sugest?

For Each ws In ThisWorkbook.Worksheets

msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws


"Dave Peterson" wrote:

Depends on if that worked correctly and if anybody/any code changed the
password.

I'd still bet that the password isn't what you think.

SLD wrote:

if i used the protect all ws macroe, would that not put the same password on
all ws?

"Dave Peterson" wrote:

I'd bet that the password isn't really 123 for all the worksheets in the
workbook that contains the code.

Maybe you can add a line just to double check:

For Each ws In ThisWorkbook.Worksheets
msgbox "Processing: " & ws.name
ws.Unprotect Password:="123"
Next ws

That may give you a hint.


SLD wrote:

I copied the unprotect macroe

Sub Unprotect_All_Sheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="123"
Next ws
End Sub

and it is still giving me an error on the 4th line. the passwords are the
same on both macroes.

What am I doing wrong?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a excel file and forgot the password Password Excel Discussion (Misc queries) 5 May 4th 13 10:30 AM
Excel file automatically opens Lost4Now Excel Discussion (Misc queries) 6 December 4th 05 09:35 PM
Remove or change password protected excel file Odawg Excel Discussion (Misc queries) 2 October 26th 05 03:54 AM
password protection of an MHTML Excel file blcarter22 Excel Discussion (Misc queries) 0 April 14th 05 05:15 PM
How Do I open an excel file without Excel Viewer support CocoriteBallGiants Excel Discussion (Misc queries) 2 February 4th 05 10:50 PM


All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"