Thread
:
Selecting a sub range?
View Single Post
#
2
Posted to microsoft.public.excel.programming
Nick Hodge
external usenet poster
Posts: 1,173
Selecting a sub range?
James
In the code below the column selected is E. The 2nd column in the range
D1:G100
Sub SelectColumnInRange()
Dim rng As Range
Set rng = Range("D1:G100")
rng.Columns(2).Select
End Sub
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS
"James Cornthwaite" wrote in message
...
If I have a range object passed to a function, eg, rng, does anybody know
how to just select column A from this larger range, rng
Is it some sort of union i have to do.
Many thanks
james
Reply With Quote
Nick Hodge
View Public Profile
Find all posts by Nick Hodge