+ Reply to Thread
Results 1 to 9 of 9

Extending the character limit of a textbox

  1. #1
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Extending the character limit of a textbox

    Hello!

    I am attempting to input a textbox into my excel sheet that I am hoping will serve as a template and work with the macro button function (new to this so my lingo is likely off). However, my textbox will only allow me to input a certain number of characters. Is there a way to increase this character limit so I can display all 3 of my paragraphs together without having to create another textbox? For example this is an idea of what I currently have (I took out the actual text though):

    Private Sub TextBox1_Change()
    TextBox1.MultiLine = True



    TextBox1.Text = "Rather long paragraph of text " + Range("A1") + "more text" + vbNewLine + vbNewLine + "even more text"


    End Sub

    My end goal is to have excel ranges where users can input scores and those scores are then updated in the textbox and users can simply copy/paste the contents of the textbox to satisfy reporting requirements. I don't want to have to export the data to word using paste special or anything because I want this to be a stand alone application.

    Any help is appreciated,
    Thanks

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,019

    Re: Extending the character limit of a textbox

    Hi JennaM

    Welcome to the forum. MultiLine TextBox will work.
    https://support.office.com/en-us/art...9-4b8a55b7cb03
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Extending the character limit of a textbox

    I have multiline set to true and it still won't allow it....I may be so new to this that I am missing something very obvious...if you look at the above code example, does the TextBox1.MultiLine=True not satisfy that requirement?

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,019

    Re: Extending the character limit of a textbox

    Are you referring to UserForm textBox...Why not just manually set the Multi line property to true in Properties

    Or Perhaps: See + changed to &
    Please Login or Register  to view this content.
    PS In Future....Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window.
    Last edited by Sintek; 07-03-2017 at 02:49 PM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Extending the character limit of a textbox

    Shapes have a 255-character limitation in one go. Here's a function that will add longer text:

    Please Login or Register  to view this content.
    For example,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Extending the character limit of a textbox

    I am not referring to the UserForm, an ActiveX textbox. I cannot find the multi line option in properties (excel 2016).

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,019

    Re: Extending the character limit of a textbox

    Herewith image....right click textbox select properties...Not sure in 2016...set False to True
    Untitled-1.png

  8. #8
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Extending the character limit of a textbox

    This worked wonderfully, thank you.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Extending the character limit of a textbox

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Limit Character Length in a Userform Textbox
    By Gal403 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2014, 05:18 AM
  2. [SOLVED] expand textbox character limit in userform
    By tomanton in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-05-2014, 06:04 AM
  3. extending cell limit beyond 255
    By Sam Capricci in forum Excel General
    Replies: 0
    Last Post: 07-18-2012, 09:11 AM
  4. Display Active Character Count + Limit Character Per Cell
    By euronail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2011, 04:59 AM
  5. Replies: 1
    Last Post: 01-13-2011, 02:29 PM
  6. Character limit?
    By ArtisanInternet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2008, 10:29 AM
  7. [SOLVED] limit character in textbox
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2005, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1