Excel VBA Code: Compile Error in x64 Version ('PtrSafe' attribute required)

后端 未结 2 1839
时光取名叫无心
时光取名叫无心 2020-12-09 08:39

I am using Win8 x64 + Office 2013 x64.

MY PROBLEM:

I have an excel file, which has some modules in it, and works flawlessly in Office (Excel) x86. It use

2条回答
  •  时光取名叫无心
    2020-12-09 09:24

    I think all you need to do for your function is just add PtrSafe: i.e. the first line of your first function should look like this:

    Private Declare PtrSafe Function swe_azalt Lib "swedll32.dll" ......

提交回复
热议问题