【发布时间】:2016-10-22 18:16:12
【问题描述】:
从excel 2010 32位升级到64位后,我在新版本中创建的所有对象都无法被其他使用excel 2010 32位的计算机识别,我已经尝试插入这个:
If VBA7 = True Then
' 32 Bit API
Private Declare PtrSafe Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As LongPtr
Private Declare PtrSafe Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As LongPtr, lpExitCode As Long) As Long
Else ' 64 bit API
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
End If
它不工作。
请帮助:)
【问题讨论】:
-
您期望得到什么样的帮助?
-
我希望能够在 32 位和 64 位 excel 中使用该文件
标签: vba excel 32bit-64bit