I know that I can use a With
statement to make repeated references to a single object:
With myObj
.StringProperty = ""
.BooleanProperty = False
End With
However, what I want to know is: is there a shorthand for referring to the original object in the With
statement? In the above example, can I refer to myObj
without explicitly typing myObj
as I'm already working with it.