Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Copy sheet with 255 chars per cell

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Copy sheet with 255 chars per cell

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Copy sheet with 255 chars per cell

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?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Copy sheet with 255 chars per cell

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
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy sheet with 255 chars per cell

Problem is fixed in Excel 2007

--

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


"Dave Peterson" wrote in message ...
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
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
Rename with more than 31 chars an Excel sheet Israel Valencia Excel Programming 1 June 14th 06 06:56 PM
ADODB is unable to copy more than 255 chars in excel cell KK[_4_] Excel Programming 17 June 11th 05 08:32 PM
ADODB is unable to copy more than 255 chars in excel cell [email protected] Excel Programming 0 June 9th 05 04:23 PM
Copy sheets with more than 255 chars in a cell? Chem Mitch Excel Worksheet Functions 1 April 16th 05 01:17 AM
copy cells with more then 255 chars... Xavalon Excel Programming 7 June 28th 04 12:50 PM


All times are GMT +1. The time now is 12:01 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"