I no longer use Hungarian notation when coding VBA but I sometimes run into situations where the type of a given variable isn't obvious.
For example, take a variable with a name of dataRow
. It could be a row number with a Long
variable type. It could be a Range variable representing an entire row. It could be a ListRow
in an Excel table. It could also be the Range
of an Excel ListRow
...and so on.
Is there some way to quickly look this up the the MS Office VBA editor? Can I somehow do this with variable naming without using variable names? I am not looking for opinions on the pros and cons of Hungarian notation, just how to see variable types without it.