ExcelVBAで動いているExcelが32bitか64bitか判断する

#ifで

Function GetExcelProcessBit() As String

#If Win64 Then
    GetExcelProcessBit = "64"
#Else
    GetExcelProcessBit = "32"
#End If

End Function