Havent seen this abbreviated style before so if it works, the problems
I would foresee would be
1) more difficult for others to decipher your code
Well, if they're not familiar with the notation, then I would agree.
But I would think most are. There are arguments about whether one
should specify default properties (actually, which of the default
properties), or not, but I'm curious about performance issues.
If c is set to some Range object representing a single cell, then:
c(1,2)
is equivalent to:
excel.application.ActiveSheet.c.item(1,2)
and should return the same result as:
excel.application.ActiveSheet.c.offset(0,1)
2) possibly incompatible with alternative software/future versions.
Why do you think it might be incompatible with future versions?
Maybe, since you are not familiar with the notation, I should rephrase
the question:
Is there an advantage/disadvantage to using the Item property vs using
the Offset property in specifying a single cell that is relative to
the base cell.
Of course, if the Range expression is a multicell range, the Item
property (using this notation) will only return a single cell (which
is what I want), whereas the Offset property will return a range of
the same size and shape.