Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Selecting Filter Data

I have data on a tab from 2008 to 2006. We have to keep the data from 2007 to
2006 so I save the workbook first. I filter the data.

Selection.AutoFilter Field:=3, Criteria1:="<=12/31/2007", Operator:=xlAnd
Selection.Offset(1, 1).SpecialCells(xlCellTypeVisible).copy

Now I have all of the data from 12/31/2007 to the last year of data. But it
grabs the headers of the data. How do I just select the filtered data only so
I can delete it.

Thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Selecting Filter Data

See this example

http://www.rondebruin.nl/delete.htm#AutoFilter



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Crazyhorse" wrote in message ...
I have data on a tab from 2008 to 2006. We have to keep the data from 2007 to
2006 so I save the workbook first. I filter the data.

Selection.AutoFilter Field:=3, Criteria1:="<=12/31/2007", Operator:=xlAnd
Selection.Offset(1, 1).SpecialCells(xlCellTypeVisible).copy

Now I have all of the data from 12/31/2007 to the last year of data. But it
grabs the headers of the data. How do I just select the filtered data only so
I can delete it.

Thanks in advance


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
Selecting row data, filter out column nulls and reporting results? thayes Excel Discussion (Misc queries) 5 March 16th 09 08:54 AM
Macro help! Selecting rows after running a filter Joe[_6_] Excel Programming 1 January 12th 08 10:57 AM
Selecting more than one filter values jamex Excel Discussion (Misc queries) 2 March 18th 06 02:32 PM
Selecting first cell in a colmn after a filter has bee applied AnitaML Excel Programming 7 August 20th 04 04:27 PM
Selecting Cells to set up Advanced Filter Bruce Roberson Excel Programming 3 July 17th 03 09:08 PM


All times are GMT +1. The time now is 04:19 PM.

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"