+ -
当前位置:首页 → 问答吧 → Doc As MSHTML.HTMLDocument 用户定义类型未定义

Doc As MSHTML.HTMLDocument 用户定义类型未定义

时间:2011-12-07

来源:互联网

在“工程/部件”对话框中勾选:Microsoft Internet Controls
在“工程/引用”对话框中勾选:Microsoft HTML Object Library

编译时提示 用户定义类型未定义

作者: lulugl   发布时间: 2011-12-07

Option Explicit

Private Sub Command1_Click()
  Dim Doc As MSHTML.HTMLDocument
End Sub


我的显示正常,你重新添加Microsoft HTML Object Library
看看

作者: crycoming   发布时间: 2011-12-10