LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy filtered rows to a new worksheet

Hi
Hope someone can help me with the following task

What I would like to accomplish is:

To have a loop that searchs a current worksheet for specific critieri
in Columns which have been set up specifically for filtering rows.

Then copies that entire row to a new worksheet.
Sets up page breaks froma defined row count.
Adds headings and Titles

The pseudo code goes something like this:

Create Worksheet

set pagerowcount =0

Page Setup adjust to 60% normal size

While not last row in worksheet do

If Page1 of worksheet
Copy currentWorksheet Title
Copy currentworksheet column headings
pagerowcount =3
end if

If New Page
Copy currentworksheetsheet column headings
Row
End if

while row count < 72
If Row equals (filter criteria )// e.g Column J ="p"
Copy row to new worksheet
End if

Increment Row count

If

End I

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

 
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
Copy to filtered blank rows from another spreadsheet Juan Excel Discussion (Misc queries) 0 April 28th 10 07:59 PM
Copy/paste data across filtered rows jday Excel Worksheet Functions 1 November 11th 09 05:33 PM
Copy and Paste Format in filtered rows XLFanatico Excel Discussion (Misc queries) 6 July 24th 09 05:53 PM
print or copy filtered rows ADIB Excel Discussion (Misc queries) 2 February 20th 09 10:48 PM
How do I copy filtered rows in excel BMX19 Excel Discussion (Misc queries) 1 June 3rd 05 12:27 AM


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