How can i refer to the object i use inside With
if i want the object itself, not its properties / methods?
With ThisWorkbook.Sheets("MySheet")
Call MySub(ThisWorkbook.Sheets("MySheet")) ' works OK, but duplicated
Call MySub(this) ' does not works
.Range(...).Value2 = 1
...
End With
+ what is the correct terminology here? i don't even know how to compose a google query for this and get some usefull results (since with
is a common word)...
UPDATE: to clarify, i was thinking in terms of a handle like
with ... as handle
from python syntax, not about object-oriented this
keyword