Share via

How To replace Equations on Text

Anonymous
2016-12-18T04:09:49+00:00

Hi,

Dear All ExpertS!!!!

I have A Little Problem in Microsoft Office Word

I have Office 2016, And I composed a book in word That contains URDU (PAKISTAN) And I typed all the Fractions as a text like this (2/3, 1/6, 1/2, 1/8) And Now I want to Replace it With (Equation, Fractions) Like  so I want to Use FIND and REPLACE option for this purpose, Because The Book is Very huge 428 pages, and it is very difficult to find that text and compose a new equation on the place of that text I mean ( instead of 1/6)

So please Show me the way to find and replace that text Automatically,

If it is possible then please reply my fast as you can, because book is to be published but waiting only for these corrections.

Thanks in Advance!!!

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2016-12-19T02:25:25+00:00

    See the following page of fellow MVP Graham Mayor's website:

    http://www.gmayor.com/installing_macro.htm

    Thanks A Lot DEAR SIR

    Was this answer helpful?

    0 comments No comments
  2. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2016-12-18T06:55:25+00:00

    See the following page of fellow MVP Graham Mayor's website:

    http://www.gmayor.com/installing_macro.htm

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-12-18T06:20:30+00:00

    How I Shall RUN MACROS????

    Was this answer helpful?

    0 comments No comments
  4. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2016-12-18T05:57:25+00:00

    Running a macro containing the following code

    Dim strQuotient As String

    Dim strDivisor As String

    Selection.HomeKey wdStory

    Selection.Find.ClearFormatting

    With Selection.Find

        Do While .Execute(FindText:="[0-9]{1,}/[0-9]{1,}", MatchWildcards:=True, Forward:=True, Wrap:=wdFindStop) = True

            With Selection

                strQuotient = Left(Selection.Text, InStr(Selection.Text, "/") - 1)

                strDivisor = Mid(Selection.Text, InStr(Selection.Text, "/") + 1)

                ActiveDocument.Fields.Add Selection.Range, wdFieldEmpty, "EQ \F(" & strQuotient & "," & strDivisor & ")", False

            End With

        Loop

    End With

    will convert

    to

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2016-12-18T04:26:53+00:00

    This is screenshot I want LIKe this

    Was this answer helpful?

    0 comments No comments