运www.devze.com开发者_JAVA教程行前请确定你的电脑安装了word。复制代码 代码如下:i=0set wshshell=createobject("wscript.shell")Set objWord = CreateObject("Word.Application") Set colTasks = objWord.Tasks do while i<30F编程客栈or Each objTask in colTasks if left(objTask.Name,1)=http://www.devze.com"与" thenwshshell.appactivate objTask.NameWshShell.SendKeys "{enter}"wshshell.sendkeys "^www.devze.comv"WshShell.Senhttp://www.devze.comdKeys iwscript.sleep 600WshShell.SendKeys "%s"i=i+1end if nextloop
精彩评论