Thread
:
New to excel macros need help with selecting ranges
View Single Post
#
3
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
New to excel macros need help with selecting ranges
How about a nice one liner broken up to account for possible word wrap. NO
selections
Sub copyrng()
Cells(2, 4).Resize(Cells(Rows.Count, 4). _
End(xlUp).Row - 1).Copy range("z5")
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
wrote in message
...
I have need a macro that will select a range in a column and copy
data.
In one spreadsheet the column range maybe N2 - N15
the next time the column range maybe N2 - N250
How can I code it to select N2 - last cell in column so I don't have
to change macro each time for each spreadsheet.
Thank you
Terrie
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett