我收到了以下错误.
Compile error: The code in this project must be updated for use on 64-bit systems.
Run Code Online (Sandbox Code Playgroud)
VBA代码
Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, _
ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Dim Ret As Long
'~~> This is where the images will be saved. Change as applicable
Const FolderName As String = "C:\Temp\"
Run Code Online (Sandbox Code Playgroud)
它在Excel 2010中工作正常.
谢谢.
编辑
我得到的错误是Ret …