Results 1 to 4 of 4

Thread: How to send text that contain subscript and superscript from a macro to a cell?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    [VBA]Public Sub SubScriptEnter()
    With Worksheets("Sheet1").Range("c1")
    .Value = "Chem2 on Route66"
    .Characters(5, 1).Font.Subscript = True
    .Characters(15, 2).Font.Subscript = True
    End With
    End Sub[/VBA]

    Main variable is the ".Character(5,1)" portion, where the first number is equal to the count of the letter you want subscripted and the second number being the number of letters after that to subscript.

    If you run this code, for example, it will only Subscript the "2" and the "66".
    Last edited by thomaspatton; 03-07-2008 at 05:30 AM. Reason: Ima dumbass

Posting Permissions

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