PC Review


Reply
Thread Tools Rate Thread

Copy sheet with >255 chars per cell

 
 
Dan Neely
Guest
Posts: n/a
 
      20th Nov 2007
Excels sheet copy feature is limited to copying the first 255
characters in a cell. Could a macro be used to copy the sheet along
with characters 256+, and if so, how would it be written?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      20th Nov 2007
The copy function will copy more than 255 character, it just doesn't display
over the 255 characters. I belive the limit for the number of characters in
the cell is 16,000 characters. The problem is you can't see all 16,000
characters. The visible portions of the string is liomited to 256.

"Dan Neely" wrote:

> Excels sheet copy feature is limited to copying the first 255
> characters in a cell. Could a macro be used to copy the sheet along
> with characters 256+, and if so, how would it be written?
>

 
Reply With Quote
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      20th Nov 2007
For accurate details on specifications and limits, type:

Excel specifications and limits

in the Excel Help search box and select that option from the menu.

"Joel" wrote:

> The copy function will copy more than 255 character, it just doesn't display
> over the 255 characters. I belive the limit for the number of characters in
> the cell is 16,000 characters. The problem is you can't see all 16,000
> characters. The visible portions of the string is liomited to 256.
>
> "Dan Neely" wrote:
>
> > Excels sheet copy feature is limited to copying the first 255
> > characters in a cell. Could a macro be used to copy the sheet along
> > with characters 256+, and if so, how would it be written?
> >

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      20th Nov 2007
If you're doing this manually, you can copy the sheet, then go back and copy the
cells on the original sheet and paste onto the new sheet. Then those long
strings in the cells will get copied over.

This may give you an idea in code:

Dim wks1 As Worksheet
Dim wks2 As Worksheet

Set wks1 = Worksheets("sheet1")

wks1.Copy 'to a new workbook?
Set wks2 = ActiveSheet

wks1.Cells.Copy _
Destination:=wks2.Range("a1")

Dan Neely wrote:
>
> Excels sheet copy feature is limited to copying the first 255
> characters in a cell. Could a macro be used to copy the sheet along
> with characters 256+, and if so, how would it be written?


--

Dave Peterson
 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      20th Nov 2007
Problem is fixed in Excel 2007

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Dave Peterson" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> If you're doing this manually, you can copy the sheet, then go back and copy the
> cells on the original sheet and paste onto the new sheet. Then those long
> strings in the cells will get copied over.
>
> This may give you an idea in code:
>
> Dim wks1 As Worksheet
> Dim wks2 As Worksheet
>
> Set wks1 = Worksheets("sheet1")
>
> wks1.Copy 'to a new workbook?
> Set wks2 = ActiveSheet
>
> wks1.Cells.Copy _
> Destination:=wks2.Range("a1")
>
> Dan Neely wrote:
>>
>> Excels sheet copy feature is limited to copying the first 255
>> characters in a cell. Could a macro be used to copy the sheet along
>> with characters 256+, and if so, how would it be written?

>
> --
>
> Dave Peterson

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy rows from one Data sheet to another sheet based on cell conte John McKeon Microsoft Excel Misc 2 15th May 2010 06:49 AM
Help: auto-copy entire rows from 1 sheet (based on cell criteria) to another sheet. bertbarndoor Microsoft Excel Programming 4 5th Oct 2007 04:00 PM
ADODB is unable to copy more than 255 chars in excel cell KK Microsoft Excel Programming 17 11th Jun 2005 08:32 PM
ADODB is unable to copy more than 255 chars in excel cell krallabandi@gmail.com Microsoft Excel Programming 0 9th Jun 2005 04:23 PM
Copy sheets with more than 255 chars in a cell? =?Utf-8?B?Q2hlbSBNaXRjaA==?= Microsoft Excel Worksheet Functions 1 16th Apr 2005 01:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.