+ Reply to Thread
Results 1 to 3 of 3

Making text fit

  1. #1
    Registered User
    Join Date
    10-24-2005
    Posts
    55

    Making text fit

    Hi

    I have a user form and a worksheets with a textbox (the worksheet is for my sale orders and the form is used so any user can input text and then the info is sent to the worksheet and printed).

    Is it possible that if a user has entered more text than the worksheet text box will be able to display that it can change the text to a smaller font size so all the info fits? Is there any code that I could add to the textbox to allow this to happen?

    Many thanks

  2. #2
    Registered User
    Join Date
    05-04-2006
    Posts
    24

    ...

    you can change the cell format on your worksheet to "shrink to fit" under the format cells option. Under properties on the form you can limit to how many characters can be input. thats all i know of.

  3. #3
    Forum Contributor boylejob's Avatar
    Join Date
    02-22-2007
    Location
    Forest City, NC
    MS-Off Ver
    2003
    Posts
    562
    Raw,

    How do you move your data from the UserForm to the worksheet? You could code to make change at the point the data is moved. You could use the LEN function and change the font size if the length is above a certain number.

    Please Login or Register  to view this content.
    cbanks mentioned ShrinkToFit and the code for that is

    Please Login or Register  to view this content.
    Looks like you have several options that can help solve your problem. If you prove a little more detail, we might be able to come up with some better solutions for you.
    Sincerely,
    Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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