also @ TechSpot: Motorola Droid 4 unboxing, hands-on video
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Download Now:

MS Word 2007

Thread Tools Search this Thread
  #1  
Old 09-11-2008
TechSpot Member
 
Member since: May 2007, 130 posts
MS Word 2007

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.
  #2  
Old 09-12-2008
Ex-TechSpotter
 
Member since: Dec 2007, 18,354 posts
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)
Quote:
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.

  #3  
Old 09-12-2008
TechSpot Member
 
Member since: May 2007, 130 posts
It didn't work.

Doesn't MS Word 2007 have something built into it?
  #4  
Old 09-12-2008
Ex-TechSpotter
 
Member since: Dec 2007, 18,354 posts
It works (I know, I proved it)

Please follow the directions precisely

Once the new button is created, you first highlight your text (like )
Then you press your new macro button

Tested and works

[COLOR="DimGray"]edit:[/COLOR]
Quote:
Doesn't MS Word 2007 have something built into it?
Only for 1/2 1/3 and a few others

Last edited by kimsland; 09-12-2008 at 01:00 PM..
  #5  
Old 12-07-2008
Newcomer, in training
 
Member since: Dec 2008, 1 posts
Fraction formating

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!!!!
  #6  
Old 12-07-2008
Ex-TechSpotter
 
Member since: Dec 2007, 18,354 posts
Quote:
Originally Posted by mretzloff View Post
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:


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

Anyone else got it to work?
Closed Thread

Similar Topics
Topic Replies Forum
Word 2007 problem 0 Software Apps
Word 2007 Problem with TOC 2 Software Apps
Word 2007 Help? 1 Software Apps
Word 2007 Save As Word 2003 not working 1 Software Apps
Microsoft Word 2007 help 1 Software Apps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 03:27 PM.