protect and unprotect
Hi - I am either missing something really simple or something else is
happening: This works fine... sub proc i_protect Dim mySheet As Worksheet For Each mySheet In Worksheets mySheet.protect ("abc1234") Next mySheet end sub This says the password is incorrect... sub proc i_unprotect Dim mySheet As Worksheet For Each mySheet In Worksheets mySheet.Unprotect ("abc1234") Next mySheet end sub Any ideas? Thanks Andrew |
protect and unprotect
Jackpot!
2 sheets had different passwords Many thanks Andrew "Andrew" wrote in message ... Hi - I am either missing something really simple or something else is happening: This works fine... sub proc i_protect Dim mySheet As Worksheet For Each mySheet In Worksheets mySheet.protect ("abc1234") Next mySheet end sub This says the password is incorrect... sub proc i_unprotect Dim mySheet As Worksheet For Each mySheet In Worksheets mySheet.Unprotect ("abc1234") Next mySheet end sub Any ideas? Thanks Andrew |
All times are GMT +1. The time now is 10:01 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com