Results 1 to 13 of 13
  1. #1
    New Lounger
    Join Date
    Sep 2005
    Location
    Cambridge, Ontario, Canada
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    typing fractions (Word SP/2003)

    I am typing a document that includes fractions such as 1/2, 1/4 etc. The autoformat automatically converts these fractions which is fine, however, it does not recognize other fractions such as 1/8 etc. Is it possible to convert these unrecognized fractions to appear the way autoformat changes them to keep consistency or do I have to turn off this feature?

    Thanks in advance.

  2. #2
    2 Star Lounger
    Join Date
    Dec 2003
    Location
    Ossining, New York, USA
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Re: typing fractions (Word SP/2003)

    The feature that converts numbers to fractions works only for quarters (

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: typing fractions (Word SP/2003)

    Only a limited number of fractions is available as characters of their own, so if you want consistent formatting, you should turn off the automatic conversion of 1/2 to

  4. #4
    Gold Lounger Rebel's Avatar
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    3,024
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: typing fractions (Word SP/2003)

    Depending on the font you are using, there may be more than the two or three "standard" fractions. Have a look at this article .
    John
    A Child's Mind, Once Stretched by Imagination...
    Never Regains Its Original Dimensions

  5. #5
    New Lounger
    Join Date
    Sep 2005
    Location
    Cambridge, Ontario, Canada
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    Thank you all for your help. UnfortunatelyI think it would be quickest just to turn it off though.

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    Here is a macro (unfortunately, I can't remember the author) that formats any fraction. You can turn off the autocorrect options & run this macro by assigning it to a toolbar or menu.
    <pre>Sub Fraction()
    '
    ' Fraction Macro
    ' Macro created 12/1/01
    ' Changes fraction to superscript/subscript
    ' Adds space after fraction to continue typing
    ' Works with multi-digit numerator & denominator
    ' Must type two spaces before proper fraction
    '
    Dim OrigFrac As String
    Dim Numerator As String, Denominator As String
    Dim NewSlashChar As String
    Dim SlashPos As Integer

    NewSlashChar = "/"

    Selection.MoveLeft Unit:=wdWord, Count:=3, Extend:=wdExtend
    OrigFrac = Selection
    SlashPos = InStr(OrigFrac, "/")
    Numerator = Left(OrigFrac, SlashPos - 1)
    Denominator = Right(OrigFrac, Len(OrigFrac) - SlashPos)
    Selection.Font.Superscript = True
    Selection.TypeText Text:=Numerator
    Selection.Font.Superscript = False
    Selection.TypeText Text:=NewSlashChar
    Selection.Font.Subscript = True
    Selection.TypeText Text:=Denominator
    Selection.Font.Subscript = False

    Selection.MoveLeft Unit:=wdWord, Count:=3
    Selection.TypeBackspace

    Selection.EndKey Unit:=wdLine
    Selection.TypeText Text:=" "
    Selection.Font.Subscript = False
    End Sub</pre>

    Cheers,

  7. #7
    Star Lounger
    Join Date
    Feb 2003
    Location
    near Blairgowrie, Perthshire, Scotland
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    Edited by HansV to make URL clickable - see <!help=19>Help 19<!/help>

    Saw my name in relation to a couple of macros in Office Watch. I later tried to come up with a better mousetrap - don't know if the macro at http://www.locheesoft.com/text/macro12.htm will serve the purpose. The idea is to put a button on a Toolbar which will change the current selection to a fraction if (a) there is a slash in it or ([img]/forums/images/smilies/cool.gif[/img] it's one of Word's 1/4 1/2 3/4 because the slash angle is different.

    Rex Last

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: typing fractions (Word SP/2003)

    Thanks, it works well in a quick test.

  9. #9
    New Lounger
    Join Date
    Sep 2005
    Location
    Cambridge, Ontario, Canada
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    Thanks that works great so far in a quick test! I had tried the other one but was losing the slash for some reason and I'm afraid I don't know enough about VB to identify where that problem came from. Thanks again!

  10. #10
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Dallas, Texas, USA
    Posts
    1,680
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: typing fractions (Word SP/2003)

    I have installed the macro, created a toolbar button and a right-click shortcut. All works fine. The only thing I'd like to change is the appearance of the entry on the right-click shortcut menu... Any way to tidy that up? It looks out of place as it is, but again, it functions just fine.

    Thanks
    - Ricky

  11. #11
    Star Lounger
    Join Date
    Feb 2003
    Location
    near Blairgowrie, Perthshire, Scotland
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    I assume you have used Tools, Customize to pick up NewMacros.MyMacro or whatever and drop it on the Text shortcut menu, for example. With the Customize dialog box visible, navigate to the Text shortcut menu and right click on the offending item. You can then Rename it. Note that Text doesn't cover all text, for example, bullet points have a separate shortcut menu called Lists.

  12. #12
    Star Lounger
    Join Date
    Feb 2003
    Location
    near Blairgowrie, Perthshire, Scotland
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: typing fractions (Word SP/2003)

    If you go through the same process as when you created the shortuct - Tools, Customize, Toolbars, Shortcut menus - you can scroll down to the shortcut menu and right click on the item. Now you can opt to edit it by changing the contents of the Name box.

  13. #13
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Dallas, Texas, USA
    Posts
    1,680
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: typing fractions (Word SP/2003)

    Thank you for the concise instructions. I use this macro all the time. I find it very useful and have uncovered no problems. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    - Ricky

Posting Permissions

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