小编use*_*745的帖子

确保您的VBA代码是64位兼容的

我的Mircosoft Office 2010是x86但是当我尝试运行oe VBA时,我收到一个错误,它不兼容x64.

我有这个代码:

Private Declare Function SHFileOperation Lib "shell32.dll" Alias _
    "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long

Private Declare Function PathIsNetworkPath Lib "shlwapi.dll" _
    Alias "PathIsNetworkPathA" ( _
    ByVal pszPath As String) As Long

Private Declare Function GetSystemDirectory Lib "kernel32" _
    Alias "GetSystemDirectoryA" ( _
    ByVal lpBuffer As String, _
    ByVal nSize As Long) As Long

Private Declare Function SHEmptyRecycleBin _
    Lib "shell32" Alias "SHEmptyRecycleBinA" _
    (ByVal hwnd As Long, _
     ByVal pszRootPath As String, _
     ByVal dwFlags …
Run Code Online (Sandbox Code Playgroud)

excel vba function 32bit-64bit

3
推荐指数
1
解决办法
2894
查看次数

标签 统计

32bit-64bit ×1

excel ×1

function ×1

vba ×1