Consulting

Results 1 to 4 of 4

Thread: Solved: Superscript in Form buttons

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Location
    Sydney
    Posts
    60
    Location

    Solved: Superscript in Form buttons

    I am trying to create a form with buttons that include one character of superscript (as in 2xsquared) but it just comes out as 2x2. Does anyone have any ideas about how I can make it come out the right way.

  2. #2
    you can try using special symbol fonts, in which you may get for what you are looking.

  3. #3
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    AFAIK, superscript 1, 2 and 3 are part of the standard character set. You can use the Initialze event of the form to define the characters you can't add at design time.[VBA]CommandButton1.Caption = "2" & Chr(178)[/VBA]
    K :-)

  4. #4
    VBAX Regular
    Joined
    Jun 2005
    Location
    Sydney
    Posts
    60
    Location
    Quote Originally Posted by Killian
    AFAIK, superscript 1, 2 and 3 are part of the standard character set. You can use the Initialze event of the form to define the characters you can't add at design time.[vba]CommandButton1.Caption = "2" & Chr(178)[/vba]
    Thanks, that worked perfectly.

Posting Permissions

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