Hi,
I am trying to lock cells in excel when I run macro, but id doesn't work.
Below is the code.
Public Sub submit_button()
Range("B4:B8").Locked = True
End Sub
B4:B8 are the cells which i am trying to lock. Please let me if I am missing anything here.
Thanks in advance
Bookmarks