>Wow.... this worked wonderful. And this is what I was looking at. Thanks a
>lot Gord. Iam totally impressed and saved me a lot of time as I had more than
[quoted text clipped - 35 lines]
>> >Your help is much appreciated,
>> >Prashanth KR
Hi Gord,
Iam encountering another problem. I tried, to unprotect the sheets with the
following Macro to make some modifications:
Sub UnProtect()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
With ws
.UnProtect Password:="Protect"
.EnableSelection = xlUnlockedCells
End With
Next ws
End Sub
But, when I try again, to protect the sheets with your macro, it does
protects all sheets, but it does not allow me to "Select the Locked Cells".
Kindly help.
Thanks in advance,
Prashanth KR.
> You're welcome.............both times<g>
>
[quoted text clipped - 39 lines]
> >> >Your help is much appreciated,
> >> >Prashanth KR
Gord Dibben - 28 Aug 2007 16:06 GMT
>> but it does not allow me to "Select the Locked Cells".
The code does its job.
Not allowing you to select locked cells, only unlocked cells.
If you want to select locked and unlocked cells remove the line
.EnableSelection = xlUnlockedCells
Gord
>Hi Gord,
>
[quoted text clipped - 61 lines]
>> >> >Your help is much appreciated,
>> >> >Prashanth KR