#1
|
|||
|
|||
'Little fraction' stopped?
Word '07
I added several more rows to an existing table using the tab key. In the column that I've been typing fractions as part of a phrase in each cell of the column that fraction auto changes to the small size. However, the fraction is not auto changing in the cells of the added rows. 1. I do not understand why this would occur simply by adding rows? 2. I cannot figure out how to 'turn back on' the auto shrink feature? Mark |
#2
|
||||
|
||||
Hi Mark,
The only in-built fractions in every font are ¼, ½ & ¾. Some fonts have support for thirds and eighths also, but anything else you have to create for yourself. And, whereas the in-built fractions consist of a single character, your own will consist of three or more characters. The following macro will convert your own fractions to an approximate visual representation of the in-built fraction characters. If you use it, I'd suggest not using the in-built fractions, so that the appearance is consistent throughout the document. Code:
Sub Fraction() Dim RngTmp As Range, StrFrac With Selection StrFrac = Split(Selection.Text, "/") Set RngTmp = .Range With RngTmp .Font.Size = .Font.Size * 0.875 .End = .Start + Len(StrFrac(0)) .Font.Superscript = True .Characters.Last.Next.Font.Italic = True .End = .End + 2 + Len(StrFrac(1)) .Start = .End - Len(StrFrac(1)) - 1 .Font.Subscript = True End With End With Set RngTmp = Nothing End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Ah, that explains the problem since the problematic fraction was an 1/8.
Thanks for your code offering. I will turn off the auto fraction feature and will attempt to figure out how to get your code to enter Word. Mark |
#4
|
||||
|
||||
Hi Mark,
With my macro, you input the fraction, select it, then run the macro. To see how to install & runn macros, go to: http://www.gmayor.com/installing_macro.htm
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Assuming I were to start off with a base of 3/4, 1/2, 1/4, 1/8 and 1/16 that I separately run the macro for all 5 fractions and then again for each additional fraction needed?
Mark |
#6
|
||||
|
||||
Hi Mark,
Yes, with the macro as coded, you'd need to process each fraction separately.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2010 rule has stopped 'seeing' Contact entries | LakeGator | Outlook | 0 | 11-11-2010 07:31 PM |
Microsoft Word has stopped working | Extraordinaire | Word | 4 | 10-29-2009 11:43 AM |
fraction not appearing correctly | kcr | Word | 1 | 10-21-2009 03:51 PM |
Tab key stopped working in Word | jgriffin | Word | 2 | 06-24-2009 04:05 PM |
Excell stopped working | TomC | Excel | 4 | 05-26-2006 11:40 PM |