Consulting

Results 1 to 3 of 3

Thread: Trying To Make TextBox's Font Property is Superscript

  1. #1
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location

    Trying To Make TextBox's Font Property is Superscript

    Hi everone

    I am trying to TextBox3's font property as superscript but, it returns me "Object doesn't support this property".

    Is there a way to do it via an another way?

    My wrong code is:

    [vba]
    Private Sub CommandButton1_Click()
    TextBox3.Text.Characters(Start:=4, Length:=3).Font.Superscript = True
    End Sub
    [/vba]

    Thanks a lot.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Userform and ActiveX control textboxes do not allow multi character formatting.
    Any font attributes apply to ALL the text.
    Cheers
    Andy

  3. #3
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Hi Andy Pope.

    Thank you for the important help.

    By the way, i want to thank you for Button Editor. It is a wonderful job.
    Best regards.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •