D
Darkeyce
can someone please explain to me how to use a variable in a rang
reference?
example:
The above yields the results i want. but i would like to replace "C500
with some reference to the maximum lines as identified b
'maxpolines'.
the macro recorder produced "=SUBTOTAL(9,R[-14]C:R[-1]C)". This synta
looks like some kind of offset reference but i have no idea how to mak
something useful (and flexible) out of that
reference?
example:
maxpolines = Application.CountIf(Worksheets("P
Data").Range("A2:A500"), srcponum)
...some autofilter logic....
Worksheets("PO Data").Select
tottoinv = Evaluate("=SUBTOTAL(9,C2:C500)")
The above yields the results i want. but i would like to replace "C500
with some reference to the maximum lines as identified b
'maxpolines'.
the macro recorder produced "=SUBTOTAL(9,R[-14]C:R[-1]C)". This synta
looks like some kind of offset reference but i have no idea how to mak
something useful (and flexible) out of that