Osiris was telling us:
Osiris nous racontait que :
How would I put a BIG text item and a small text item together in a
cell of a table ?
I tried this:
With .Range
.Font.Size = 16
.Text = "tues"
End With
With .Range
.Font.Size = 8
.InsertAfter = "day"
End With
but that just makes "tuesday" 8 points text.
We need to see more of your code... what is .Range?
Why two With blocks?
Anyway, you main problem is probably related to the fact that you use
..InsertAfter which includes the previous range as well as the new inserted
text when you are finish executing this code.
Here's is one of many ways of doing this:
'_______________________________________
'To make sure we handle only one cell at the time.
Selection.Range.Collapse wdCollapseStart
'Make sure we are in a table cell
If Not Selection.Information(wdWithInTable) Then
MsgBox "Place the cursor in a table cell."
Exit Sub
End If
With Selection.Cells(1).Range
'remove the cell marker from the range
.Collapse wdCollapseStart
'add "tues" and set size
.Text = "tues"
.Font.Size = 16
'Preapre range to be only" day"
.Collapse wdCollapseEnd
'add "tues" and set size
.Text = "day"
.Font.Size = 8
End With
'_______________________________________
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org