Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Auto Fillter data and copy to other table

I have a column, which i would like to filter and copy the filtered
data to other sheet.
The filter criteria should be the items in the same column.
Like using the auto filter.
I know how to apply Auto filter - Selection.AutoFilter Field:=1,
Criteria1:="xyz", but how to get this "xyz" from the values in that
column?
Should I loop throght the column cells, and somehow filter the items?
I am lost?

Also when looping throught column, how to stop if cell is empty?

thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto Fillter data and copy to other table


RANGE(\"A7\").SELECT ' ANY CELL ON THE TOP OF YOUR HEADING
SELECTION.AUTOFILTER ' ADDS AUTO FILTER
SELECTION.AUTOFILTER FIELD:=1, CRITERIA1:=\"XYZ\" ' SELECTS THE
CRITIRIA I.E 1= FIRST COLUMN. XYZ=WHAT YOU WANT TO FILTER IT BY
SELECTION.CURRENTREGION.SELECT ' SELECTS THE RESULTS
SELECTION.COPY ' COPYS THE RESULTS
WORKBOOKS.ADD ' ADDS WORKBOOK
ACTIVESHEET.PASTE ' PASTES THE RESULTS
APPLICATION.CUTCOPYMODE = FALSE ' TURNS OFF THE COPY FEATURE


Hope that helps let me know if you have any questions


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=516151

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Auto Fillter data and copy to other table

The problem is that i want to filter it by the contens of the column.

let's say i have the following column
xyz
xyz
xyz
xyz
zyx
zyx
zyx
yxz
yxz
yxz


i would like to filter and copy data for every single item - first for
"xyz", second "zyx", third "yxz",

don't know how to do it

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto Fillter data and copy to other table


how many different values are there that you want to filter.

it is not to long just copy the copy the amount of times and then you
should be able to paste it in different workbooks or sheets.

I think a "Do Loop" is in needed however I am not sure how to do a loop
with autofilter.


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=516151

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
Auto copy data from another database Montu Excel Worksheet Functions 0 January 24th 08 01:54 PM
Auto copy of data to first available cell Jeff Excel Discussion (Misc queries) 0 August 9th 06 02:16 AM
auto copy old data to new cell walt007 New Users to Excel 1 July 28th 06 08:11 PM
Auto copy data from 1 sheet into another Ltat42a Excel Discussion (Misc queries) 1 January 5th 06 01:52 AM
Copy auto filtered data edinclimb Excel Discussion (Misc queries) 0 January 3rd 06 06:36 PM


All times are GMT +1. The time now is 04:05 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"