Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default variable length more than 1024 - how to show string complete in excel?

Hello!


I have a table in an excel-sheet showing my contacts.
I use a VBA-loop to add up the emails of my contacts and store them in
a string variable (separated by an ';' of every contact).

Problem is, it adds up to about 4000 characters total.

The cell that I have chosen to display the complete variable shows
only the first 1024 characters of the string value.

Is there a way using VBA I can show the full 4000 character string?


Best regards
NorTor

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default variable length more than 1024 - how to show string complete inexcel?

Try changing the separator to vblf (chr(10)).
And set the cell's wraptext to true.

If you add these alt-enters to a cell (every 80-100 characters), you can see
lots more of the string.

Maybe a nicer alternative--a userform with a text box on it???

NorTor wrote:

Hello!

I have a table in an excel-sheet showing my contacts.
I use a VBA-loop to add up the emails of my contacts and store them in
a string variable (separated by an ';' of every contact).

Problem is, it adds up to about 4000 characters total.

The cell that I have chosen to display the complete variable shows
only the first 1024 characters of the string value.

Is there a way using VBA I can show the full 4000 character string?

Best regards
NorTor


--

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
Finding a string of unknown length in a string of unknown length, Help! Hankjam[_2_] Excel Discussion (Misc queries) 8 July 3rd 08 06:49 PM
How do I set up a Chart in Excel with variable cell length? Kev Charts and Charting in Excel 1 November 2nd 07 12:02 PM
how do i get a cell in a sheet to show the last 1024 characters? XenneX Excel Worksheet Functions 1 September 6th 06 02:02 PM
Variable-Length String causing error Q[_2_] Excel Programming 4 December 8th 03 11:31 PM
Error when string length 1024 and starts with - Dianne Excel Programming 3 December 4th 03 07:31 AM


All times are GMT +1. The time now is 10:53 PM.

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

About Us

"It's about Microsoft Excel"