>>>>My guess it's related to Windows version and user access rights. For troubleshooting, try to run application as admin and see if it fixes the problem.
>>>
>>>I've tried to run myapp.exe "run as administrator" still same :(
>>
>>As I said, I don't think it's Excel 2007 problem. I have Excel 2007 on my PC with WinXP SP3 and I have no problem executing your code.
>
>May be this is w7 bug :( or corrupted installation set
I asked some of my friends with Windows 7/Excel 2010 or Excel 2007 to test. One said it may be a permission issue and another could not make it to work in VBA (both don't have VFP to try).
If it's not broken, fix it until it is.
My Blog