سؤال

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...

هل كانت مفيدة؟

المحلول

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
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top