Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default paste problem

Why does this code work:

Sheets("CDPSD").Range("E1:E79").Copy
Sheets("CDPTR").Range("A2").PasteSpecial
Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

and this one not:?

Sheets("CDPSD").Range("B1:B363").Copy
Sheets("CDPTS").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


The 2nd code generates an error that says it can't paste becuase the
destination is not the same size? Why does it work once and not later? How
can I fix this?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default paste problem

Well, it appears to me, you are trying to transpose more than 256 columns
into a spreadsheet that can only handle 256 columns (until Excel 12.)

--
Kevin Vaughn


"Shawn" wrote:

Why does this code work:

Sheets("CDPSD").Range("E1:E79").Copy
Sheets("CDPTR").Range("A2").PasteSpecial
Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

and this one not:?

Sheets("CDPSD").Range("B1:B363").Copy
Sheets("CDPTS").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


The 2nd code generates an error that says it can't paste becuase the
destination is not the same size? Why does it work once and not later? How
can I fix this?


--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default paste problem

r/transpose more/transpose to more

The below should read transpose to more than 256 columns, not transpose more
than 256 columns (but you knew what I meant, didn't you?)

--
Kevin Vaughn


"Kevin Vaughn" wrote:

Well, it appears to me, you are trying to transpose more than 256 columns
into a spreadsheet that can only handle 256 columns (until Excel 12.)

--
Kevin Vaughn


"Shawn" wrote:

Why does this code work:

Sheets("CDPSD").Range("E1:E79").Copy
Sheets("CDPTR").Range("A2").PasteSpecial
Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

and this one not:?

Sheets("CDPSD").Range("B1:B363").Copy
Sheets("CDPTS").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


The 2nd code generates an error that says it can't paste becuase the
destination is not the same size? Why does it work once and not later? How
can I fix this?


--
Thanks
Shawn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default paste problem

So I was. I didn't need that many cells anyway so this was an easy fix.
Thanks for the pointer. Sometimes when you have worked on something all day,
you just can't see the simple stuff.
--
Thanks
Shawn


"Kevin Vaughn" wrote:

Well, it appears to me, you are trying to transpose more than 256 columns
into a spreadsheet that can only handle 256 columns (until Excel 12.)

--
Kevin Vaughn


"Shawn" wrote:

Why does this code work:

Sheets("CDPSD").Range("E1:E79").Copy
Sheets("CDPTR").Range("A2").PasteSpecial
Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

and this one not:?

Sheets("CDPSD").Range("B1:B363").Copy
Sheets("CDPTS").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


The 2nd code generates an error that says it can't paste becuase the
destination is not the same size? Why does it work once and not later? How
can I fix this?


--
Thanks
Shawn

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default paste problem

You're welcome. I just happened to notice it while reading your message.
Glad it helped.
--
Kevin Vaughn


"Shawn" wrote:

So I was. I didn't need that many cells anyway so this was an easy fix.
Thanks for the pointer. Sometimes when you have worked on something all day,
you just can't see the simple stuff.
--
Thanks
Shawn


"Kevin Vaughn" wrote:

Well, it appears to me, you are trying to transpose more than 256 columns
into a spreadsheet that can only handle 256 columns (until Excel 12.)

--
Kevin Vaughn


"Shawn" wrote:

Why does this code work:

Sheets("CDPSD").Range("E1:E79").Copy
Sheets("CDPTR").Range("A2").PasteSpecial
Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True

and this one not:?

Sheets("CDPSD").Range("B1:B363").Copy
Sheets("CDPTS").Range("A2").PasteSpecial Paste:=xlValues,
Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True


The 2nd code generates an error that says it can't paste becuase the
destination is not the same size? Why does it work once and not later? How
can I fix this?


--
Thanks
Shawn



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
Cut-and-paste problem [email protected] Excel Discussion (Misc queries) 1 March 23rd 08 08:02 PM
Paste Problem Between Ex 97 vs 2k DaveM Excel Discussion (Misc queries) 5 January 30th 08 02:31 PM
Paste Problem Ed Excel Discussion (Misc queries) 1 January 5th 06 10:42 AM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
CUT & PASTE PROBLEM Todd Excel Discussion (Misc queries) 1 March 10th 05 12:45 AM


All times are GMT +1. The time now is 08:20 AM.

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"