Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Need Macro to Copy Visible Cells to New Sheet

try these

Sub copyvis1()
ActiveSheet.Cells.SpecialCells(xlCellTypeVisible). Rows.Copy
Destination:=[sheet5!a6]
End Sub

Sub copyvis()
slr = Range("a65536").End(xlUp).Row
For Each c In Range("a5:a" & slr)
x = Sheets("sheet5").Range("a65536").End(xlUp).Row + 1
If c.EntireRow.Hidden < True Then
c.EntireRow.Copy Destination:= _
Sheets("sheet5").Range("a" & x)
End If
Next
End Sub

--
Don Guillett
SalesAid Software
Granite Shoals, TX

"Progster" wrote in message
...
Hi. I've recently added the use of 'Advanced Filter' to my bag-o-tricks,
and I find that what I would really like to do is to perform the AF "in
place", and then copy the visible cells to a new sheet.

I know it is possible to have the AF output it's results to another
(already existing) sheet, but I find this process cumbersome and
unintuitive.

Could it be that others have felt this way before me, and created a macro
which will grab visibile rows (the results of a filter operation), create

a
new sheet, and place a copy of those rows on the new sheet?

If so, I'd really appreciate it if one or more such solutions might show

up
here!




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
Copy Visible Cells in Sheet with Merged and Hidden Cells rtwiss Excel Discussion (Misc queries) 5 April 25th 23 09:08 AM
copy visible cells Sunny Excel Worksheet Functions 1 December 29th 08 06:27 PM
Copy a whole Word doc into Excel sheet & keep it all visible? Jackstri Excel Discussion (Misc queries) 1 February 16th 06 01:56 PM
Macro-Copy various cells in sheet1 into next available row in sheet 2 lunker55 Excel Discussion (Misc queries) 7 October 21st 05 11:05 PM
Copy visible cells only Nethie Excel Discussion (Misc queries) 1 October 13th 05 09:31 PM


All times are GMT +1. The time now is 10:08 AM.

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"