Ok so I thought I was done with my workbook and I start to protect everything, for realistic testing. But now in protected mode everything is giving errors because it says cells needed are protected.. even though their unlocked. So I was wondering if their
is something that can unlock those supposely locked cells for a second just while the VBA uses them.
Something like:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim Cell As Range
Sh.Unprotect
' code goes here
...
Sh.Protect
End Sub
But for some reason that doesn't work. So is there something else that I could do to fix this problem.
Also, can some one explain to me how to add them because I tried adding the above to this:
Sub ClearEverything()
'
' ClearEverything Macro
'
'
Range( _
"B10:B14,E10:E14,I14:I16,H21:J22,D26,C26,C27:C28,D28:E28,E27,E26,J25:J28,Q24:Q25,Q14,Q5:R11" _
).Select
Range("Q11").Activate
Selection.ClearContents
Range("Q5:R5").Select
End Sub
AND ALSO TO A NORMAL VBA
And had no success. Can someone please show me how to do this, becuase if I get this I can finish my workbook, and this is the only thing holding me back now.
So I would GREATLY appreciate the help... THANK YOU in advance to everyones help!!!