Setting Range Variable
"Steve C" skrev i en meddelelse
...
I would like to set a variable equal to whatever the currently selected
range
is on my spreadsheet. I have started my procedure as follows (assuming
that
a given range of cells has already been selected on my spreadsheet):
Dim rng as Range
Set rng = Active range of cells currently selected
What is the code I need for describing the active range? Thanks.
--
Steve C
Hi Steve
Set rng = Selection
MsgBox rng.Address
will do the job.
--
Best regards
Leo Heuser
Followup to newsgroup only please.
|