Solved

How to Copy and Paste Visible Cells only

Posted on 2013-11-07
3
826 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
3 Comments
 
LVL 33

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 31

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now