Dim Proc As New Process '定义一个新的ProcessProc.File = "d:\test.xls" '指定要打开的文件Proc.Start()
Do While FileIsOpened("d:\test.xls") Application.DoEventsLoop
msgbox(2)