pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
What are possible reason when protection with "userinterfaceonly:=True" won't work?
Below is my code. It works now but @ work it wont work. It keeps repeating that sheet/chart is protected....unlock it...
I dont want the code to unlock and then protect it back everytime i run macro....
Please suggest!
PS. The ribbon is completly hidden with excel4macro
Thanks.
Pedie
Below is my code. It works now but @ work it wont work. It keeps repeating that sheet/chart is protected....unlock it...
I dont want the code to unlock and then protect it back everytime i run macro....
Please suggest!
Code:
[/FONT]
[FONT=Courier New]Sub try()
Sheet2.Protect Password:="123", userinterfaceonly:=True
End Sub[/FONT]
[FONT=Courier New]
PS. The ribbon is completly hidden with excel4macro
Thanks.
Pedie