문제

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