32-bit Excel 2010 Run Macro Fine, but 64-bit Excel 2010 Doesn't

ransomedbyfire

Board Regular
Joined
Mar 9, 2011
Messages
121
I have been trying to get a really old macro that someone else wrote with API calls for a certain program to run on a 64-bit computer with a 64-bit version of Excel 2010. I have been testing it on another computer that someone else is letting me use for testing purposes. I just found out that this test computer does have 64-bit Windows but is running a 32-bit version of Excel 2010.

The macro I am testing almost works on the test computer, except for a few problems specific to that computer that do not involve Excel; but I am not having much luck with the other computer with 64-bit Excel.

Does the fact that the code runs fairly well on the test computer indicate that it should be able to run on the other computer? Or does 64-bit Excel 2010 run totally differently in terms of APIs than 32-bit Excel 2010?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Or does 64-bit Excel 2010 run totally differently in terms of APIs than 32-bit Excel 2010?

Bingo (but it's not just API's). That's why you'll find that not too many people have switched to 64-Bit Office. It's too much of a pain in the a$$, especially with existing add-ins.

If you post the code someone might be able to help you get it set up for 64-Bit.
 
Upvote 0
Is it just a matter of adjusting things like ptrsafe functions? I've been told that some API calls do not work with 64-bit Excel, period. Is this true? And how to I know if these calls can work? Trial and error until I give up?
 
Upvote 0
PtrSafe is one of the big things, yes. As to API's some will work with some adjusting, while some won't; it's all a matter of what they do. I personally don't do much with API's though, so I'll wait until someone who does can come along and give a better answer.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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