Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need autofilter and data extracting help

I am trying to autofilter and then seperate data brought into a spreadsheet
from an external text file. I need to write a macro that allows me to
autofilter and move (not just copy) each set of similar data from one sheet
to a seperate, new sheet in the workbook.

Thanks for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default Need autofilter and data extracting help

Here is an example of setting up a filter and moving data to another
spreadsheet:
The filter is set up on column H only, but you can change it to as many a
columns as required. The Field is based on the column you want to filter by;
the criteria is selfexplanatory, you can change it to a variable so it
becomes more dynamic or hardcoded if it won't change.
Application.Worksheets("Sheet1").Select
Columns("H:H").AutoFilter Field:=1, Criteria1:="ENT"
Range("A:H").SpecialCells(xlCellTypeVisible).Cut
Destination:=Worksheets("Sheet2").Range("A1")

If this posting was helpful, please click on the Yes button.




"Shredda" wrote:

I am trying to autofilter and then seperate data brought into a spreadsheet
from an external text file. I need to write a macro that allows me to
autofilter and move (not just copy) each set of similar data from one sheet
to a seperate, new sheet in the workbook.

Thanks for your assistance.

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
extracting data from one sheet based on data in another - VLookup? des Excel Worksheet Functions 3 February 4th 09 07:27 PM
Need help extracting data.... Bruce Excel Programming 1 January 12th 07 04:31 AM
Extracting Data for .Txt Files By Unique Field Data La Excel Discussion (Misc queries) 3 July 17th 06 01:30 PM
Extracting items from Autofilter drop down Golgo 13 Excel Programming 14 August 19th 05 08:51 PM
Extracting Data Michael168[_17_] Excel Programming 3 October 4th 03 12:53 PM


All times are GMT +1. The time now is 02:42 PM.

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

About Us

"It's about Microsoft Excel"