none
Superscript and subscript seach in text

    Question

  • Hi All,


    I want to find and repalce a Character followed by a superscript and subscript or subscript and superscript.

    For Example

    A+-

    Here + and - should be search and replace as A<stag>+- </stag>

    Similarly for this but vice versa

    A+-

    Here + and - should be search and replace as A<stag>+- </stag>

    Kind Regards,
    Sriram
    Thursday, December 18, 2008 10:00 AM

Answers

  •  There is no direct way to search for both. Try searching either and use Selection.Next and Selection.Previous

    Say you have searched for Superscript (using Selection.Find), then check for the following

    Selection.Previous.Font.Subscript = True

    or

    Selection.Next.Font.Subscript = True

    Cheers
    Shasur
    http://www.vbadud.blogspot.com
    • Marked as answer by SriramPrabu Friday, December 19, 2008 10:59 AM
    • Unmarked as answer by SriramPrabu Friday, December 19, 2008 10:59 AM
    • Marked as answer by SriramPrabu Friday, December 19, 2008 11:00 AM
    Friday, December 19, 2008 10:03 AM