copying a column

matrickz

New Member
Joined
Oct 20, 2006
Messages
3
I created a document with hidden rows. I now want to copy a column from that report but NOT show the hidden rows. Highlighting the column brings over the entire column. I know I can click on each cell but we are talking 900 cells. How can I copy over JUST the cells that are SHOWING?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
You can use the following code to do it:
Code:
    Columns("C:C").SpecialCells(xlCellTypeVisible).Copy _
        Destination:=Sheets("Test 2").Range("A1")
This copies column C to the WorkSheet called "Test 2", column A.
The hidden rows are not copied.

To do this manually:
Select the Column
Hit Alt-;
Ctrl-C to copy
Ctrl-V to Paste where you want.
 

Forum statistics

Threads
1,136,595
Messages
5,676,707
Members
419,644
Latest member
KeelsM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top