Locking Shapes

  • Thread starter Thread starter Syrus the Virus
  • Start date Start date
S

Syrus the Virus

I have tried to lock shapes so that they can't be moved or deletde....
but I failed!!!!!!!!!!!!!!!


HELP HOW DO I LOCK SHAPES!!!!!!!!!
 
You need to protect the sheet to lock them

Sub LockAllShapes(
Dim shp As Shap

For Each sht In ThisWorkbook.Sheet
If sht.ProtectionMode = True The
sht.Unprotec
End I
For Each shp In sht.Shape
If shp.Locked = False The
shp.Locked = Tru
End I
Nex
sht.Protect DrawingObjects:=Tru
Nex

End Su

Hope that helps

-Brad Vontur
 

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

Back
Top