I would like to apply the following code (only if the shape is not already placed in the location):
For example,
If <textbox> worksheet area doesn't have a textbox then
apply the above code.
Else
exit sub
Currently if I use the above code a second time it throws an error.
Any help would be appreciated.</textbox>
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("Pricing").Shapes.AddTextBox(msoTextOrientationHorizontal, 807.3529133858, _
5.2940944882, 632.6470866142, 180.8823622047).Select
Selection.ShapeRange.Line.Visible = msoFalse
Range("F10:J10").Select
Sheets("Pricing").Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ThisWorkbook.Save
End Sub
For example,
If <textbox> worksheet area doesn't have a textbox then
apply the above code.
Else
exit sub
Currently if I use the above code a second time it throws an error.
Any help would be appreciated.</textbox>