word宏怎么写( 四 )


【word宏怎么写】" Selection.TypeParagraph Selection.TypeParagraph Selection.TypeParagraph Selection.TypeText Text:= _ " " Selection.InsertDateTime DateTimeFormat:="yyyy-MM-dd", InsertAsField:= _ False, DateLanguage:=wdEnglishUS, CalendarType:=wdCalendarWestern, _ InsertAsFullWidth:=False Selection.MoveUp Unit:=wdLine, Count:=1 Selection.Font.Size = 22 Selection.MoveRight Unit:=wdCharacter, Count:=1 Selection.TypeParagraph Selection.Font.Size = 16 Selection.TypeText Text:=" " Selection.Font.Color = wdColorRed End With'4.保存,关闭文档,退出 MyWord.Visible = False '设置WORD可见 MyWordBook.SaveAs FileName:="c:\aa.doc" MyWordBook.Close MyWord.Quit Set MyWordBook = Nothing Set MyWord = Nothing MsgBox "操作完毕",vbOKOnly,"提醒" unload me End Sub 。