I have both the 32 and 64 bit version of Office 2010. If I need to install VSTO 2 for 2010 Office 32 bit machines and install VSTO 4 64 bit for 2010 Office 64 bit machines
Public Function checkbitversion() As Variant
#If VBA7 Then
checkbitversion = "64"
#Else
checkbitversion = "32"
#End If
End Function
but it always results as 32 bit for all machines. I need help to overcome the problem.
I refer to the following MSDN article: http://msdn.microsoft.com/en-us/library/ff700513%28v=office.11%29.aspx