Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Copy Paste filtered column ok in 2003 not in 2007

In Excel 2003 I copy a range of columns from a filtered datain one workbook
and paste into another in a number of macros.
In 2007 I get the "can't paste because paste and copy area are not the same
shape" error message. I can find no way round this. If I manually copy a
whole column which has autofilter on (and is filtered in some way), I cannot
paste that column into another sheet.

There must be a work-a-round - please can you help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Copy Paste filtered column ok in 2003 not in 2007

G'day Sandra

Are you copying the entire column from one sheet, then attempting to patse
into a defined range.

eg

Sheets("Sheet1").Select
Range("A:A").Select
Selection.Copy
Sheets("Sheet2").Select
Range("A1:A100").Select
Selction.Paste

Check your code to make sure you don't have something like this, if so,
correct as required.

HTH
Mark.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Copy Paste filtered column ok in 2003 not in 2007

Mark,
I was doing this column-to-column - it isn't just in a macro, this doesn't
work manually either. With some experimenting I found that I could copy if I
specified the first and last cells e.g. not Range ("A:B") but
Range("A1:B4320").

BUT Something seems to have changed in the way filtering is handled. For
instance, manually auto filter a column in a spreadsheet. Manually copy the
first cell to the last cell (not selecting the whole column - either
CTRL+Shift+end or scroll), paste it into another spreadsheet. You will get
the unfiltered contents. However, if you had copied Row 2 onwards (not
copying the filtered row) you would have got the filtered contents!

Do you think there might be an option somewhere in 2007 to alter the
behaviour of copying with filtered lists? I've tried the main microsoft
pages but can't see anything relevent.

Sandra

"NoodNutt" wrote:

G'day Sandra

Are you copying the entire column from one sheet, then attempting to patse
into a defined range.

eg

Sheets("Sheet1").Select
Range("A:A").Select
Selection.Copy
Sheets("Sheet2").Select
Range("A1:A100").Select
Selction.Paste

Check your code to make sure you don't have something like this, if so,
correct as required.

HTH
Mark.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Copy Paste filtered column ok in 2003 not in 2007

Sandra

I think what is happening is that the first row is being treated as the
header row.

You may have to move your data down a row and use the first row as the
header, either with or without text headings.

See if that makes a difference.

HTH
Mark


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy and paste filtered cells Rich Excel Discussion (Misc queries) 1 February 27th 08 01:50 AM
Excel 2007/2003 compatibility problem - copy and paste [email protected] Excel Discussion (Misc queries) 0 December 6th 07 02:57 PM
Copy and Paste Filtered Cells in Excel 2007 Gillian Excel Discussion (Misc queries) 0 December 5th 07 03:46 PM
copy and paste filtered data Churley Excel Discussion (Misc queries) 6 September 4th 07 04:17 PM
Dificulty in copy and paste when items is filtered in excel 2007 henksa Excel Worksheet Functions 2 August 21st 07 07:34 PM


All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"