Problem with Pasting filtered array and hidden columns

GAJITCS

Board Regular
Joined
Apr 21, 2015
Messages
66
I have an array A12:AK58 with a Defined Name "Euro_For_Export".

Rows 12:21 contain text only.

There is data in A22:AK58 in the form of a table, but not formatted as a table.

Row 22 can be considered as the header for the data below.

I have the need to hide columns R:U and some others.
I have the need to Filter the data by column A.

No problems with this.

There seems be an issue in that I am unable to select the array by name "Euro_For_Export", copy and then paste it to another worksheet without the hidden columns being copied too.
It seems that the filtering is not an issue, just the hidden columns.

Any thoughts please?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I have an array A12:AK58 with a Defined Name "Euro_For_Export".

Rows 12:21 contain text only.

There is data in A22:AK58 in the form of a table, but not formatted as a table.

Row 22 can be considered as the header for the data below.

I have the need to hide columns R:U and some others.
I have the need to Filter the data by column A.

No problems with this.

There seems be an issue in that I am unable to select the array by name "Euro_For_Export", copy and then paste it to another worksheet without the hidden columns being copied too.
It seems that the filtering is not an issue, just the hidden columns.

Any thoughts please?


The answer was hidden away in the forum already.

I have replaced the VBA Copy statement with

Application.Selection.SpecialCells(xlCellTypeVisible).Copy

And it works a treat

Answer found here: https://www.mrexcel.com/forum/excel-questions/413078-dont-paste-hidden-columns.html

Thank you TheNextGuy
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

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
Back
Top