+ Reply to Thread
Results 1 to 3 of 3

Change the Font of selected text in excel vba

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Change the Font of selected text in excel vba

    I have a requirement where i need to change the font of seleted text in a text box. For Example:

    TextBox1.Text = "I have solution very badly"
    With TextBox1
    .selText = "solution" 'I want to change the font style of this text to bold
    End With

    Please help me in doing this. I need the solution very badly.

    Thanks in advance for the help!

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Change the Font of selected text in excel vba

    That's not available to controls. It's either all or nothing.

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Change the Font of selected text in excel vba

    I got the solution for this. I used InkEdit control instead of textbox. This resolved my issue. Thanks.

+ 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