Mega Code Archive

 
Categories / VisualBasic Script / Word
 

Uppercase the first three words at the start of a document

Sub upper()     Dim InitialCaps As Range      Set InitialCaps = ActiveDocument.Range(Start:=ActiveDocument.Words(1).Start, _         End:=ActiveDocument.Words(3).End)     InitialCaps.Case = wdUpperCase End Sub