Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



MS Word 2007

mretzloff
09-11-2008, 09:48 PM
This might sound dumb, but how do you type in fractions into MS Word 2007? I don't want it to say 6/5, I want the six, the slash, and the five to automatically make themselves smaller.

kimsland
09-12-2008, 01:30 AM
Open Word
Press keys ALT+F8
Type: FractionFormat (in the Macro Name, box)
Click the Create button

The NewMacros (Code) window will open
Copy (copy and paste) the following into that window, pasting over what is already there)
Sub FractionFormat()
'Highlight fraction x/y and run macro
Dim OrigFrac As String
Dim Numerator As String, Denominator As String
Dim NewSlashChar As String
Dim SlashPos As Integer
NewSlashChar = "/"
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
End Sub
Click the little (blue disk) Save button, on the toolbar
Now click on Insert (on the toolbar) then Module
This will open a new Module window
Rename it to FractionFormat (on the Left Side of the screen, under Properties Module1)
Then cut and paste the macro from the NewMacros module to the newly created FractionFormat Module.
Now close the editor fully (taking you back to the new Word document)

Right click the Quick Access Toolbar (QAT) and select 'Customize Quick Access Toolbar'
Select "Choose commands from" box, then select Macros
Select your FractionFormat macro, then select Add
You may then select the Modify button, to change the pic and label
Click ok

Now
Back in the Word document, type a fraction like 12345/67890
Highlight (using left mouse drag over) the fraction
Locate your new button (likely right up the top of all the toolbars)
And click it.
WhaLa!
The real cool part, is you can use letters as well !

This information has been dramatically cutdown from this page: http://www.gmayor.com/installing_macro.htm

Please let me know if it worked. Or anyone else who'd like to submit their feelings too.

:)

Ad
09-12-2008, 01:30 AM
  

mretzloff
09-12-2008, 12:49 PM
It didn't work.

Doesn't MS Word 2007 have something built into it?

kimsland
09-12-2008, 12:54 PM
It works (I know, I proved it)

Please follow the directions precisely

Once the new button is created, you first highlight your text (like http://i37.tinypic.com/5ds4yx.gif)
Then you press your new macro button

Tested and works

edit:
Doesn't MS Word 2007 have something built into it?
Only for 1/2 1/3 and a few others

nilsjohns22
12-07-2008, 02:19 PM
It worked great for me!!! Thanks so much, been losing a lot of time trying to figure this one out. Such a basic command, I am amazed it isn't built into MS Word for formatting fractions other then 1/2 & 1/4.......?? Anyway you saved me a lot of aggravation, thanks again!!!!

kimsland
12-07-2008, 04:51 PM
I don't want it to say 6/5, I want the six, the slash, and the five to automatically make themselves smaller.
Here's a screen dump of my Word that now does this:
http://i38.tinypic.com/bhku40.gif

@nilsjohns22 Thanks :grinthumb I was a little worried that I provided all this info in vein

Anyone else got it to work?

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

Sony working on digital store for music, movies, books

Details of Intel's 32nm Atom emerge, on track for 2011

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.