Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default copy data when Autofilter On and active

Hi, (XL 2003)
Strange behavior when autofilter is On and has some filters applied:

Say I have a table of data starting in Row 5
Say row 2 (above the table) is hidden

1. With no filters applied (whether or not the AutoFilter is On)
ActiveSheet.Cells.Copy NewSheet.Cells
-- all cells are copied

2. Now I apply a filter on the table
ActiveSheet.Cells.Copy NewSheet.Cells
a. -- it only copies the filtered rows in the table, however Row 2 which is
not part of the table is not copied either while it was in the previous case.
The 'issue' seems to be coming from the Copy: went you copy manually ,
you already see the highlight around row 2 indecating it is not part of the
copied cells.
b. -- Finally, even if you try to copy the top rows and table rows
separately, Row 2 is still not copied over.

What I wwant is to be able to copy:
- only the visible rows from the table
- and any row outside the table (even though those rows are hidden).
when a filter is applied.

Any idea?

Thanks

Sebastien
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 on non-active sheet tigger Excel Programming 5 November 5th 07 11:22 AM
Copy data from 3rd worksheets and pasting to active worksheet KimberlyC Excel Programming 4 June 29th 05 02:09 AM
autofilter on a not-active sheet Peter[_21_] Excel Programming 2 January 15th 05 12:33 PM
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. ragman10 Excel Discussion (Misc queries) 1 December 13th 04 11:52 PM
Macro to copy cell data to word document based on an active row? Brian Excel Programming 2 September 16th 04 01:55 PM


All times are GMT +1. The time now is 09:53 AM.

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"