i have a problem. When I lock a sheet, all the combo boxes and tick boxes are locked too. I want to lock the sheet but allow function with comboboxes and all the buttons and stuff...
apreciated
What kind of controls are you using? What is not working with the controls?
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
This may be helpful.
Run Macros On Protected Worksheets
While locking the sheet, check "Edit Objects", and then lock your sheet.
its not working... i lock the sheet and tick edit objects but when i click in a combo box or in a tick box the message that the shhet is locked appears and i cant change nothing![]()
mybe you should perfect you macro,using code change the protection status,before running the macro----release the sheet,when then "sub" over locked the sheet again
Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
On Error Resume Next
Sheets(1).Unprotect Password:="123"
End Sub
Private Sub ComboBox1_LostFocus()
On Error Resume Next
Sheets(1).Protect Password:="123"
End Sub
Last edited by andrewyang; 09-23-2009 at 01:19 AM.
Following attachement is example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks