+ Reply to Thread
Results 1 to 4 of 4

An easy one for the gurus. texbox.value into multiple lines of Auto Shape.

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Nelson Bay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    28

    An easy one for the gurus. texbox.value into multiple lines of Auto Shape.

    Good afternoon,

    I have a script where the text from a textbox is put into an autoshape.

    I have autofit=true on the shape, which makes the shape stretch to fit the text.

    At the moment if the textbox.value is quite long, my autoshape winds up being very wide and short.

    I'd like to do something like:

    Please Login or Register  to view this content.
    If I could get seperate whole words, that would be perfect.

    Alternatively, is there a way to fix the width of an AutoShape and autosize the height to fit the text?

    Or, is there a way to autofit the text to the box rather than fit the box to the text?

    Any assistance you can provide is appreciated.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: An easy one for the gurus. texbox.value into multiple lines of Auto Shape.

    Maybe this
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    Nelson Bay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: An easy one for the gurus. texbox.value into multiple lines of Auto Shape.

    This works really well, but for some reason I'm getting box characters at the end of my lines like this...

    Boxes.JPG

    Maybe because I'm trying to put the text into an AutoShape. Any ideas?

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    Nelson Bay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: An easy one for the gurus. texbox.value into multiple lines of Auto Shape.

    Got it. Just had to change vbCrLf to vbLf

    Thank you!!

+ 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. This should be easy for Excel gurus..
    By firebladejr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2007, 02:49 AM
  2. How do I group multiple lines of excel info for easy sorting
    By ericsayang in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-12-2006, 04:10 PM
  3. [SOLVED] Should be an easy one for you Gurus...
    By Jennifer Carr in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-28-2005, 02:06 PM
  4. Really easy one :- cells with multiple lines
    By Nigel_hough in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2005, 07:36 AM
  5. Easy Question for formula Gurus
    By cavhooah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2005, 12:17 PM

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