S
sbitaxi
Hello:
I'm trying to tell Excel to select multiple columns, but a want only
the cells in the data range selected. If I use the following it
selects the entire column -
Range("Z:Z,AP:AP").Select
which is close but I want it to select only as far as the last row of
data.
What I am trying to get is -
Last = LRow(WS)
Range("Z3:Z" & Last,"AP3:AP" & Last).Select
But it selects everything as if I had entered
Range("Z3:AP"&Last).Select
Any help is greatly appreciated. I guess I don't quite understand how
the Range function works.
Steven
I'm trying to tell Excel to select multiple columns, but a want only
the cells in the data range selected. If I use the following it
selects the entire column -
Range("Z:Z,AP:AP").Select
which is close but I want it to select only as far as the last row of
data.
What I am trying to get is -
Last = LRow(WS)
Range("Z3:Z" & Last,"AP3:AP" & Last).Select
But it selects everything as if I had entered
Range("Z3:AP"&Last).Select
Any help is greatly appreciated. I guess I don't quite understand how
the Range function works.
Steven