bradyboyy88
Well-known Member
- Joined
- Feb 25, 2015
- Messages
- 562
So basically I am using the following code to see if a shape exists
I want to get around having to use On error because I figure there is a better way to check if something exists without it generating an error.
Code:
On error Resume Next
If .Shapes("Input_Textbox") Is Nothing Then
.Shapes.AddTextbox(msoTextOrientationHorizontal, DropDownBox.Left, DropDownBox.Top + Padding, InputBox_Wdith, InputBox_Height).Name = "Input_Textbox"
End If
I want to get around having to use On error because I figure there is a better way to check if something exists without it generating an error.
Last edited: