Bob,
Word 97 uses Visual Basic too.
What Sub routine do you get if you record a macro to change a selection of
text to blue?<
Here is what you get when some text is already highlighted before recording
the macro:
Public Sub MAIN()
WordBasic.EditReplace Find:="^l^l", Replace:="^p^p", Direction:=0,
MatchCase:=0, WholeWord:=0, PatternMatch:=0, SoundsLike:=0, ReplaceAll:=1,
Format:=0, Wrap:=2, FindAllWordForms:=0
End Sub
Sub ReplaceDblMLBwDblParaMarks()
'
' ReplaceDblMLBwDblParaMarks Macro
' Replace double manual line breaks with double paragraph marks
'
End Sub
Sub MakeTextBlue()
'
' MakeTextBlue Macro
' Macro recorded 05/03/06
'
With Selection.Font
.Name = "Times New Roman"
.Size = 10
.Bold = False
.Italic = False
.Underline = wdUnderlineNone
.StrikeThrough = False
.DoubleStrikeThrough = False
.Outline = False
.Emboss = False
.Shadow = False
.Hidden = False
.SmallCaps = False
.AllCaps = False
.ColorIndex = wdBlue
.Engrave = False
.Superscript = False
.Subscript = False
.Spacing = 0
.Scaling = 100
.Position = 0
.Kerning = 0
.Animation = wdAnimationNone
End With
End Sub
Jack
------------------------------------------------
Humm, I'm working with 2003 and Visual Basic. What Sub routine do you
get if you record a macro to change a selection of text to blue?
(Ctrl+F9 inserts a field here and really boluxes up the document
)
Jack wrote: