VBA to determine if user is running 64bit Excel or 32bit Excel

Mxer911

New Member
Joined
Jan 14, 2010
Messages
17
As the title states I'm looking to create a VBA that checks and determines if the user is running 64bit Excel or 32bit Excel. Any and all help is greatly appreciated.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Thanks for the quick reply, however this looks to be used in determining the OS is 32 or 64, however you can still install 32 or 64 office 2010 on a 64 bit system, so I'm looking for coding that will determine whether excel is 32 or 64.
 
Upvote 0
I think you can do this using Conditional Compilation:

Code:
Sub test()
Dim bIs64Bit As Boolean
#If win64 Then
    bIs64Bit = True
#End If
MsgBox "This is 64bit office: " & bIs64Bit
End Sub
 
Upvote 0
Using "environ" function you can get procesor version but it's not info is excel 32/64 bit.
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top