ransomedbyfire
Board Regular
- Joined
- Mar 9, 2011
- Messages
- 121
I am trying to edit some VBA written a while back using API calls to an investment program to make it compatible with Excel 2010 64-bit. I have replaced all the "long" types with "longptr" and added "ptrsafe" to the functions where needed. But now, I am getting type mismatch errors on some of the functions that take long type data for an argument. Why is this happening? Is it possible that the API call just doesn't know what to do with LongPtr data because it was written a long time ago? How can I get around this?