+ Reply to Thread
Results 1 to 8 of 8

Loading more than 255 characters into a userform textbox

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    57

    Loading more than 255 characters into a userform textbox

    I'm attempting to bypass the character limit in Excel for a textbox on a userform.

    I have a function which I pass the form name, the textbox name and the text to laod.
    My research shows that I need to use the .TEXTFRAME to insert more lines, the problem is that TEXTFRAME does not exist for userform textboxes.

    Anyone have a workaround?

    Here is my code:

    Please Login or Register  to view this content.
    Last edited by witchcraftz; 01-27-2016 at 04:30 PM.

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

    Re: Loading more than 255 characters into a userform textbox

    Please take a few minutes to re-read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Loading more than 255 characters into a userform textbox

    Thank you.

    An ActiveX textbox isn't subject to the character limitations an autoshape's textframe.

  4. #4
    Registered User
    Join Date
    01-11-2012
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: Loading more than 255 characters into a userform textbox

    This is some code i got from this forum for this problem


    Please Login or Register  to view this content.
    Cheers

    Ross

  5. #5
    Registered User
    Join Date
    01-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Loading more than 255 characters into a userform textbox

    The problem is this is a userform, so I don't think I have access to the activeX textbox, the shapes or activesheet references.
    Last edited by witchcraftz; 01-27-2016 at 05:01 PM.

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

    Re: Loading more than 255 characters into a userform textbox

    Please Login or Register  to view this content.
    That's 400 characters.

    Don't forget to set the WordWrap and Multiline properties to True.

  7. #7
    Registered User
    Join Date
    01-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Loading more than 255 characters into a userform textbox

    Duh, of course it's something simple like forgetting to set multiline. I'm an idiot for not paying attention.

    Thanks!

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

    Re: Loading more than 255 characters into a userform 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] Loading the value of text file (notepad) to a textbox
    By nathan0519 in forum Excel General
    Replies: 4
    Last Post: 07-17-2014, 10:48 PM
  2. Replies: 23
    Last Post: 07-12-2014, 07:09 PM
  3. [SOLVED] VBA Code for Textbox: First 3 characters Alphabets next 3 characters numeric
    By honger in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2013, 01:05 AM
  4. [SOLVED] blank space characters in userform textbox
    By NJH88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2013, 05:06 AM
  5. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 PM
  6. Limit Userform TextBox Characters
    By jennie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2011, 02:17 PM
  7. [SOLVED] Max numbers of characters in userform textbox and cell
    By N E Body in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2005, 02: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