Finding the last cell in a protected sheet
Oh it's OK, just found the answer in the archive :-) Duh!
myLastCol = _
..Cells.Find("*", After:=.Cells(1), _
LookIn:=xlFormulas, LookAt:=xlWhole, _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByColumns).Column
Thanks anyway
TM
"TishyMouse" wrote:
The command:
SpecialCells(xlLastCell).Select
fails if my worksheet is protected. Is there any way round this without
resorting to unprotecting the sheet (I don't want to have to hard code the
password in my macro)?
Thanks
TM
|