Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Max numbers of characters in userform textbox and cell

Hi

Is there a limit to the number of characters allowed in a cell (or is it
just a limit to the size of a formula)

I have a userform which has a textbox for collecting information. The user
types a message (some of which can be quite long.)
The code runs and does various things including transfering the text from
the textbox into a cell on the worksheet.

Will I have any limitations?

Kenny
Win 2000 and Excel97


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Max numbers of characters in userform textbox and cell

Hi
In Cell A1 I typed in the formula Rept("a",32767) and got a string, but
when I typed in Rept("a",32768) I got an error. This seems to suggest
that you get about 32K characters. I don't know if you can do better
from VBA

N E Body wrote:
Hi

Is there a limit to the number of characters allowed in a cell (or is it
just a limit to the size of a formula)

I have a userform which has a textbox for collecting information. The user
types a message (some of which can be quite long.)
The code runs and does various things including transfering the text from
the textbox into a cell on the worksheet.

Will I have any limitations?

Kenny
Win 2000 and Excel97


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Max numbers of characters in userform textbox and cell

A cell can hold 32K characters. So I don't think you will have a problem
unless you approach that amount.

Just be advised, that without special efforts, only 1024 of those characters
will be displayed or printed in the sheet. Special efforts would include
inserting hard returns within your data.

--
Regards,
Tom Ogilvy

--
Regards,
Tom Ogilvy


"N E Body" wrote in message
...
Hi

Is there a limit to the number of characters allowed in a cell (or is it
just a limit to the size of a formula)

I have a userform which has a textbox for collecting information. The

user
types a message (some of which can be quite long.)
The code runs and does various things including transfering the text from
the textbox into a cell on the worksheet.

Will I have any limitations?

Kenny
Win 2000 and Excel97




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Max numbers of characters in userform textbox and cell

From Forms documentation:
By default, you can enter up to 2048 characters in a text box. If you set
the MultiLine property to true, you can enter up to 32 KB of text
From Excel Specs:
32,767 characters. Only 1,024 display in a cell; all 32,767 display in the
formula bar.
Alternative: if you need to exceed these specs you may need to imbed another
"text" object; e.g. a Word document, in your sheet.

"N E Body" wrote:

Hi

Is there a limit to the number of characters allowed in a cell (or is it
just a limit to the size of a formula)

I have a userform which has a textbox for collecting information. The user
types a message (some of which can be quite long.)
The code runs and does various things including transfering the text from
the textbox into a cell on the worksheet.

Will I have any limitations?

Kenny
Win 2000 and Excel97



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Max numbers of characters in userform textbox and cell

Many thanks everyone

I think 1024 characters will be enough for now!

Kenny

"K Dales" wrote in message
...
From Forms documentation:
By default, you can enter up to 2048 characters in a text box. If you set
the MultiLine property to true, you can enter up to 32 KB of text
From Excel Specs:
32,767 characters. Only 1,024 display in a cell; all 32,767 display in the
formula bar.
Alternative: if you need to exceed these specs you may need to imbed

another
"text" object; e.g. a Word document, in your sheet.

"N E Body" wrote:

Hi

Is there a limit to the number of characters allowed in a cell (or is it
just a limit to the size of a formula)

I have a userform which has a textbox for collecting information. The

user
types a message (some of which can be quite long.)
The code runs and does various things including transfering the text

from
the textbox into a cell on the worksheet.

Will I have any limitations?

Kenny
Win 2000 and Excel97







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
Userform with textbox displaying Cell B1 Value JMay Excel Discussion (Misc queries) 2 October 4th 09 12:56 AM
UserForm; Textbox; Multiline; NonPrintable Characters sa3214[_2_] Excel Programming 3 November 3rd 04 03:46 PM
copy cell contents to a textbox 255 characters mcadle Excel Programming 7 September 7th 04 07:39 AM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM
Userform Textbox writing to a cell Rich[_12_] Excel Programming 3 July 22nd 03 02:34 AM


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