背景: 因為是網頁版的簽到,所以要先打開指定的網頁1(網頁1主要作用是登錄,)然后在打開第二個網頁2(這個是用來簽到的),我是用的VBA寫的一個簽到程序,兩個網頁幾乎是同時打開,所以完成不了報工。又會VBA的大神也可以幫我改下!thanksPrivate Sub Workbook_Open()Dim ie As ObjectSet ie = CreateObject("InternetExplorer.Application")ie.Visible = Trueie.navigate "http://baidu.com/index.do#"ie.navigate "http://baidu.com/createForm.do?p=6962531A-0F5E-43E9-84ED-185AE9A93CFE", Nothing, "_blank"While ie.readyState <> 4 Or ie.Busy = TrueDoEventsWendie.document.getElementById("logBtn").Clickie.document.getElementById("cellId58").ClickEnd Sub
- 1 回答
- 0 關注
- 1046 瀏覽
添加回答
舉報
0/150
提交
取消