andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
I have this code that deletes objects all with the same name, but once it gets to the end I get an error. Is there a way to either:
A - stop the error from popping up at the end of the code. or
B - Just have the code fade and delete all the objects at the same time
A - stop the error from popping up at the end of the code. or
B - Just have the code fade and delete all the objects at the same time
Code:
Do While ActiveSheet.Shapes("lologo1").Visible = True
With ActiveSheet.Shapes("lologo1")
rep_countB = 0
Do
DoEvents
ActiveSheet.Shapes.Range(Array("lologo1")).Select
Selection.ShapeRange.SoftEdge.Radius = Selection.ShapeRange.SoftEdge.Radius + 3
rep_countB = rep_countB + 1
timeoutq (0.01)
Loop Until rep_countB = 6
ActiveSheet.Shapes.Range(Array("lologo1")).Delete
End With
Loop