该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
跪求各位大神,最近因为VBA调用IE的问题弄得焦头烂额,深夜3点还是睡不着,小弟VBA小白一枚,在大量百度各种求救无奈之下发此贴,肯请各位老师帮忙看看下面代码的问题,万分感激,谢谢大家了。
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub 测试()
Application.DisplayAlerts = False
Set Wshshell = CreateObject("wscript.shell")
Wshshell.regwrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1803", 0, "REG_DWORD" '注册表修改文件下载启用
Wshshell.regwrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\2200", 0, "REG_DWORD" '注册表修改字体下载启用
book = "C:\Documents and Settings\001321\My Document