ajetrumpet
Banned
- Local time
- Today, 01:05
- Joined
- Jun 22, 2007
- Messages
- 5,638
Hello again folks. Having a bit of a problem with the 'END' property this time.
I have this in code:
The portion in red is not activating. However, I can get this to work:
The cells in this range lock just fine, and the user cannot select them. The first range however, does not work.
Am I using the .END property incorrectly here?
I have this in code:
Code:
ActiveSheet.Unprotect
Columns("A:AM").Hidden = False
[COLOR="Red"]Range("A3", "AL3").End(xlDown).Locked = True[/COLOR]
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
False, AllowFormattingCells:=True, AllowFormattingColumns:=True, _
AllowFormattingRows:=True, AllowInsertingColumns:=True, AllowInsertingRows _
:=True, AllowInsertingHyperlinks:=True, AllowDeletingColumns:=True, _
AllowDeletingRows:=True, AllowSorting:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True
Code:
Range("A3", "AL3").Locked = True
Am I using the .END property incorrectly here?