Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to copy a range on a ws from A2 to H.. where the
text entry in colum H ends. Please help. Regards JA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi jamesa,
Try this Sub CopyMyRange() Dim r As Integer r = 2 Do While Cells(r, 7) < "" r = r + 1 Loop Range(Cells(2, 1), Cells(r - 1, 7)).Copy End Sub ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is one possible interpretation of what you are asking:
Dim rng as Range set rng = cells(rows.count,"H").end(xlup) Range(Range("A2"),rng).copy destination:=Range("M2") -- Regards. Tom Ogilvy jamesa wrote in message ... I want to copy a range on a ws from A2 to H.. where the text entry in colum H ends. Please help. Regards JA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro copy from range | Excel Discussion (Misc queries) | |||
macro to copy only range with data | Excel Discussion (Misc queries) | |||
macro to copy range | Excel Worksheet Functions | |||
Need help - Macro to copy a specific range | Excel Worksheet Functions | |||
MACRO TO COPY TO A RANGE | Excel Discussion (Misc queries) |