Forum Discussion
yugal40
Nov 12, 2021Brass Contributor
Autolocking a table
Hi All,
I am autolocking a cell when typing a value in the cell, But when i am doing this the table sometimes in my workbook is not expanding, Can anyone help me for the same. For more please refer to the attached workbook. Let me know in case of any confusions
Thanks
9 Replies
- NikolinoDEPlatinum Contributor
Untested ... hope it works :))
Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) ActiveSheet.Unprotect Password:="xyz" Target.Locked = True With ActiveSheet .Protect userinterfaceonly:=True, Password:="xyz", AllowInsertingColumns:=True, AllowInsertingRows:=True .EnableOutlining = True .EnableAutoFilter = True End With End Sub- yugal40Brass Contributor
NikolinoDE
Thanks for your reply.
But its not working, Please refer to the attached workbook- NikolinoDEPlatinum Contributor
Hope I was able to help you with these sample files 🙂.
NikolinoDE
I know I don't know anything (Socrates)