+ Reply to Thread
Results 1 to 6 of 6

Underline text in textbox ?

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Underline text in textbox ?

    Hi,

    I want to underline my text in Textbox. Tried with
    Please Login or Register  to view this content.
    , but guess that VBA is missing this function. Any other ways for doing that ?

  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: Underline text in textbox ?

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

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Underline text in textbox ?

    i'm sorry, I don't know what strDup() does (other than duplicates string) or string() does but shouldn't
    Please Login or Register  to view this content.
    do the job?

    Oh! So you don't want to underline text, you want to draw some line out of repetitive minus signs... right...
    Last edited by bulina2k; 03-03-2014 at 04:15 PM.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  4. #4
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Underline text in textbox ?

    Yes, Strdup only duplicates string, which is exactly what I want, unless you can tell me how to use .underline only for certain words, your code underlines all text.

  5. #5
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Underline text in textbox ?

    Quote Originally Posted by shg View Post
    Please Login or Register  to view this content.
    Sorry, didn't see your post, that is what I needed, thanks a lot !!

  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: Underline text in 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. Underline text with different color
    By zbor in forum Excel General
    Replies: 5
    Last Post: 03-07-2015, 03:50 PM
  2. Align msgbox text and Bold & underline certain text
    By alexnkc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 11:01 PM
  3. Embolden and Underline Text in an Active X Text Box
    By Blake 7 in forum Excel General
    Replies: 7
    Last Post: 09-28-2011, 08:30 AM
  4. Is there a way to underline by clicking on text?
    By atsd in forum Excel General
    Replies: 2
    Last Post: 03-19-2006, 06:12 PM
  5. [SOLVED] Borders nor underline commands remove an unusual underline. ??
    By VideoFreak in forum Excel General
    Replies: 4
    Last Post: 02-11-2006, 04:20 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