Solved

How to Copy and Paste Visible Cells only

Posted on 2013-11-07
3
863 Views
Last Modified: 2013-11-10
Hi Guys, in Excel if I want to copy a cell and paste the contents from the Cell down other cells in a Auto-Filtered Column. How do I do it without pasting over the Hidden rows?
0
Comment
Question by:Justincut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 34

Expert Comment

by:Norie
ID: 39630678
You could use SpecialCells(xlCellTypeVisible) to return only the visible cells in the range you want to copy to.

For example, copy D1 to visible cells in B2:B100.

Range("D1").Copy Range("B2:B100").SpecialCells(xlCellTypeVisible)

Open in new window

0
 
LVL 4

Expert Comment

by:LCCSAM
ID: 39630745
Here is the microsoft write-up for what you are asking. The "Go To Special..." function is what you are looking for.

There is also a keyboard shortcut for this but it seems to be slipping my mind today.

http://office.microsoft.com/en-us/excel-help/copy-visible-cells-only-HA010244897.aspx
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 39630856
When copying a single cell and pasting into a filtered range, the default will be to only paste into visible cells anyway. Likewise using Ctrl+D to Fill Down will only populate visible rows.

The problem comes when you are copying a range of more than one cell. When pasting that it will paste into the same sized contiguous range.

Thanks
Rob H
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question