Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy an autofilter range

Hi all,

Does anyone know how to only copy a range whit an autofilter ha
filted:

i.e. the macro has filtered field 10 for blanks, all that is require
to be copied is the filtered rows to a sheet named "extract"

Thanks in advance
Pau

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Copy an autofilter range

Hi
have a look at
http://www.contextures.com/xlautofilter03.html#Copy

--
Regards
Frank Kabel
Frankfurt, Germany

Hi all,

Does anyone know how to only copy a range whit an autofilter has
filted:

i.e. the macro has filtered field 10 for blanks, all that is required
to be copied is the filtered rows to a sheet named "extract"

Thanks in advance
Paul


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Copy an autofilter range

After filtering and hiding some columns, my macro uses the following code to
paste the data to another workbook. Rename your column identifiers and
workbook name to suit.

' Find end of data, start for lists
Range("B65536").End(xlUp).Select
LastRow = ActiveCell.Row

' Select range and copy
Range("A1:U" & LastRow).Select
Selection.Copy

' Open Calc_Stats workbook
Set wb2 = Workbooks.Open(strFPath & "Calc_Stats.xls")

' Paste in data
wb2.Activate
Sheets("Sheet1").Activate
Range("A1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False

HTH
Ed

"pauluk " wrote in message
...
Hi all,

Does anyone know how to only copy a range whit an autofilter has
filted:

i.e. the macro has filtered field 10 for blanks, all that is required
to be copied is the filtered rows to a sheet named "extract"

Thanks in advance
Paul


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoFilter Cut/Copy not working with Name Range NoodNutt Excel Worksheet Functions 2 September 6th 08 11:37 PM
Insert Row/Copy with Autofilter lilbit3684 Excel Discussion (Misc queries) 4 April 3rd 07 11:17 PM
Autofilter - copy & paste Dorothy Excel Worksheet Functions 0 May 29th 06 10:56 PM
What is Range For Chart AutoFilter Range VBA? [email protected] Excel Discussion (Misc queries) 0 April 19th 06 05:30 PM
Copy/Paste in Autofilter honyacker Excel Discussion (Misc queries) 2 January 12th 06 02:38 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"