If I am inside a With block that is referencing the object I want to reference for a function call for example , must I reference the object by name or is there a "this" ,"me" ref that I can use?
I Have done a search online but not finding much about it in VBA.
Dim shExport As Worksheet
With shExport
.......
.......
'works as expected
GetData(shExport)
'but how can this be achieved without naming it
GetData(this)
GetData(me)
GetData()
........
End With
Function GetData(sh As Worksheet) As Integer
.....
.....
End Function