Dim wshshell
Set wordapp=CreateObject("word.application")
Set wshshell=CreateObject("Wscript.Shell")
Set worddocument=wordapp.Documents.Open(Environment("TestDir") & wordname)
wordapp.Visible=True
wordapp.WindowState=1
wshshell.SendKeys "{ENTER}"
运行时发现,Word中未键入Enter键,不知道为什么