Hello,
I’m trying to find a VBA routine that will move down a column of values until it reaches the first blank cell. I tried running
The problem is if a cell is populated it is also locked/protected. Therefore, when the active cell becomes the last populated cell before the “ActiveCell.Offset(1).Select” command I receive an Error 1004 stating “The cell is protected and therefore read only. . .”. I was hoping adding the ActiveSheet.Unprotect would resolve this but did not. Any suggestions would be greatly appreciated.
Thanks,
Steve K.
I’m trying to find a VBA routine that will move down a column of values until it reaches the first blank cell. I tried running
Sheets("Amortize").Select
ActiveSheet.Unprotect
Range("M32").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1).Select
The problem is if a cell is populated it is also locked/protected. Therefore, when the active cell becomes the last populated cell before the “ActiveCell.Offset(1).Select” command I receive an Error 1004 stating “The cell is protected and therefore read only. . .”. I was hoping adding the ActiveSheet.Unprotect would resolve this but did not. Any suggestions would be greatly appreciated.
Thanks,
Steve K.