Allow users to edit range ERROR

B

blommerse

Hello,

I've a problem, I have a macro in my sheet that custom sort by hitting
a box.

Now I want to allow users to edit range so I have to protect my sheet.
When I do this thing, my macro said there's an error in it.
How can I allow users to edit range and my macra still working. Can
anyone help me and let my know how???
Thanks
 
B

blommerse

I changed it now to give the macra the order to unprotect, custom
filter and then protect.
It works now.
But my next question is: Is it possible to allow users to format
cells??
Can you tell me?
Regards, Berry
 
B

blommerse

Hi Ardus, this is my macro:

Sub protection()
'
' protection Macro
' Macro recorded 27.06.2006 by blommerse
'

'
ActiveSheet.Unprotect
Selection.AutoFilter Field:=3, Criteria1:="<>C", Operator:=xlAnd, _
Criteria2:="<>0*"
ActiveSheet.Protect DrawingObjects:=True, _
Contents:=True, Scenarios:=True, _
AllowFormattingCells:=True
End Sub

Now I want that users can't change colors of the cells (except me)
Can you help??
Greets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top