Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Fractions Add-inn

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carlos Saavedra - 13 Jul 2007 17:36 GMT
Hi there!

Is there an add-in for creating/making fractions withion Word?

For instance, if I type within any Word document the fraction 1/2, Word immediately trasnforms it as: ½
If I type 1/4, Words makes it ¼
And finally, if I type 3/4, Word puts it as: ¾

Is there an add-in to make it for any number?

Thanks!

CS (saavchav@hotmail.com)
Russ - 13 Jul 2007 21:31 GMT
Use menu Insert/Object... When dialog box appears, pick the one for
Microsoft Equation. Play around with that.

> Hi there!
>
[quoted text clipped - 10 lines]
>
> CS (saavchav@hotmail.com)

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

Steve G - 15 Jul 2007 02:32 GMT
> Hi there!
>
[quoted text clipped - 9 lines]
>
> CS (saavc...@hotmail.com)

Suzanne Barnell a Word MVP wrote an article about fractions.  This is
the url:
http://word.mvps.org/FAQs/Formatting/CreateFraction.htm

Graham Mayor , a Word MVP, wrote code to create fractions.  His web
site is www.gmayor.com.

Thisis his code to create fractions:

 Sub FmtFraction()
Dim OrigFrac As String
Dim Numerator As String, Denominator As String
Dim NewSlashChar As String
Dim SlashPos As Integer
NewSlashChar = ChrW(&H2044)
OrigFrac = Selection
SlashPos = InStr(OrigFrac, "/")
Numerator = Left(OrigFrac, SlashPos - 1)
Denominator = Right(OrigFrac, Len(OrigFrac) - SlashPos)
With Selection
 .Font.Superscript = True
 .TypeText Text:=Numerator
 .Font.Superscript = False
 .TypeText Text:=NewSlashChar
 .Font.Subscript = True
 .TypeText Text:=Denominator
 .Font.Subscript = False
End With
End Sub

Steve G
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.