Excel通过VBA打开网页

2024-10-16 00:02:28

1、打开excel表格

Excel通过VBA打开网页

3、选择工具按钮,选择引用

Excel通过VBA打开网页

5、然后在模块界面输入代码 Sub sample() Dim objIE 钽吟篑瑜As InternetExplorer Set o芟鲠阻缒bjIE = CreateObject("InternetExplorer.Application") objIE.Visible = True objIE.navigate "https://jingyan.baidu.com/edit/content?model=1" ,注意这里是想要访问的网址 With objIE While .readyState <> 4 Or .Busy DoEvents Wend End With End Sub

Excel通过VBA打开网页

7、即可看到网页打开

Excel通过VBA打开网页
猜你喜欢