Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Visible Cells only copy & Paste
Hi all,
I would like to create a macro that selects only cells containing information from subtotalled worksheet,then copy visible cells only, and paste them into another worksheet. I have searched the existing Q&A's but can't find what I'm looking for. Thanks in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Visible Cells only copy & Paste
Kim, give something like this a try
Sub Macro1() ActiveSheet.UsedRange.SpecialCells(xlCellTypeVisib le).Copy _ Destination:=Sheet2.Range("A1") End Sub -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2000 & 97 ** remove news from my email address to reply by email ** "Kim" wrote in message ... Hi all, I would like to create a macro that selects only cells containing information from subtotalled worksheet,then copy visible cells only, and paste them into another worksheet. I have searched the existing Q&A's but can't find what I'm looking for. Thanks in advance. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Visible Cells only copy & Paste
Range("C9").CurrentRegion.Columns(1). _
SpecialCells(xlVisible).entirerow.copy _ Worksheets(3).Range("A1").PasteSpecial xlValues -- Regards, Tom Ogilvy "Kim" wrote in message ... Hi all, I would like to create a macro that selects only cells containing information from subtotalled worksheet,then copy visible cells only, and paste them into another worksheet. I have searched the existing Q&A's but can't find what I'm looking for. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
COPY PASTE VALUES ONLY FROM/ON VISIBLE CELLS | Excel Discussion (Misc queries) | |||
Copy and paste visible cells to outlook | Excel Discussion (Misc queries) | |||
Copy/Paste Visible cells only | Excel Discussion (Misc queries) | |||
how do I select, cut, and paste visible cells only | Excel Discussion (Misc queries) | |||
Copy & Paste Visible Cells with Formulas | Excel Worksheet Functions |