'why do I get object doesn't support this property or method?

for some reason

MsgBox (VarType(Application.WorksheetFunction.Address(1, getRowOfTestCode, 4, 1)))

where getRowOfTestCode = 13

throws the

error 438 "object doesn't support this property or method"

What am I missing here?



Solution 1:[1]

Address is not available in VBA via WorksheetFunction

You can instead use something like

Cells(rowNum, colNum).Address(False, False) 

It's not clear from that one line what the context is for this though, so some other approach might be more useful.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tim Williams