V
vandenberg p
I have the following VBA code (it was recorded):
dim chrtrng as range
Range("j2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
set chrtrng = selection.address
~~~~~~~
I now wish to know how to assign that range a name.
The above set does not work and I can't quite figure the
correct way to do this.
Thanks for any help.
Pieter
dim chrtrng as range
Range("j2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
set chrtrng = selection.address
~~~~~~~
I now wish to know how to assign that range a name.
The above set does not work and I can't quite figure the
correct way to do this.
Thanks for any help.
Pieter