Question

I wanna proctect a specific area or only rows in a excel sheet where the user can make changes.

My Excel Sheet

the red area should be protected, is this possible and realizeable with vba? And is it possible to make the protec scalable, when the user insert a new line?

Thanks for your suggestion!, I know my english is no quite good... -.-

I know ther are exist many question about this subject but i didn't found the right answer in following question:

I hope you can help me...

Était-ce utile?

La solution

You first have to pick which cells aren't protected by setting the Locked to false

Worksheets("Main").Range("B2:E4").Locked = False

Then you have to use to modify the cells

Worksheets("Main").Protect UserInterfaceOnly:=True
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top