Hi Brian,
There are two things you should do. Update your VBA macros to detect 32/64 bit versions of MS Office, and ensure you have the correct QM DLLs available. Details below.
1) Update your VBA "macros" to determine which version of Office you're running so that you can use the correct calling convention. You can do this by using the the compilation constants #VBA7 or #Win64. Note that there is a subtle difference between what these two constants represent.
Simplified VBA Excel macro in a module's "Declarations" section. The main difference is the calling convention for QM functions.
'Define variables
#If VBA7 Then
Declare PtrSafe Function QMConnect Lib "QMClient.dll" (ByVal Host As String, ByVal Port As Integer, ByVal UserName As String, ByVal Password As String, ByVal Account As String) As Boolean
Declare PtrSafe Function QMDcount Lib "QMClient.dll" (ByVal Src As String, ByVal Delim As String) As Long
Declare PtrSafe Function QMExtract Lib "QMClient.dll" (ByVal Src As String, ByVal fno As Integer, ByVal Vno As Integer, ByVal Svno As Integer) As String
#Else
Declare Function QMConnect Lib "QMClient.dll" (ByVal Host As String, ByVal Port As Integer, ByVal UserName As String, ByVal Password As String, ByVal Account As String) As Boolean
Declare Function QMDcount Lib "QMClient.dll" (ByVal Src As String, ByVal Delim As String) As Long
Declare Function QMExtract Lib "QMClient.dll" (ByVal Src As String, ByVal fno As Integer, ByVal Vno As Integer, ByVal Svno As Integer) As String
#End If
2) On 32-bit machines, you can only have 32 bit versions of Excel and QM, so it's straightforward which QM Dlls are required. However, you can run the 32-bit version of Excel on 64-bit Windows, so you'll probably want to make sure that your 64-bit QM installations have both 32-bit and 64 bit QMClient Dlls available.
On 32-bit machines, I have the 32-bit version of qmclient.dll and qmclilib.dll in Windows\System32
On 64-bit machines, I have the 64-bit versions of qmclient.dll and qmclilib.dll in Windows\System32, and I have the 32-bit versions of those files in Windows\SysWOW64.
--
Kevin Powick