|
我使用VBA读取htm的全部内容,但发现读取出来的内容不全,请大家帮我看看怎么回事吧,谢谢了!
- Dim f, htm As String
- f = Application.GetOpenFilename("Html Files(*.htm),*.htm", 1, "Please select a htm file")
- If f = False Then
- MsgBox "你没有选择文件", vbOKOnly, "提示"
- Exit Sub
- End If
- '打开htm文档,并读取内容
- With CreateObject("microsoft.xmlhttp")
- .Open "gert", f, False
- .send
- htm = .responsetext
- End With
复制代码
|
|