ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Dynamic range copy. (https://www.excelbanter.com/excel-programming/331447-dynamic-range-copy.html)

sungen99[_22_]

Dynamic range copy.
 

I have been able to filter my data by date but now that the filter is
done I need to copy that from one sheet to another. The problem is the
range will be dynamic so I don’t know how to do it. I usually will just
record a macro and look at it. but this just takes the actual range not
the dynamic range.

thanks very much


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=378066


Tom Ogilvy

Dynamic range copy.
 
If it was done using an Autofilter then

activesheet.Autofilter.Range.Copy _
Destination:=Worksheets("Sheet2").Range("A1")

Only the visible rows are copied.

--
Regards,
Tom Ogilvy


"sungen99" wrote in
message ...

I have been able to filter my data by date but now that the filter is
done I need to copy that from one sheet to another. The problem is the
range will be dynamic so I don't know how to do it. I usually will just
record a macro and look at it. but this just takes the actual range not
the dynamic range.

thanks very much


--
sungen99
------------------------------------------------------------------------
sungen99's Profile:

http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=378066





All times are GMT +1. The time now is 06:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com