Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Add "Dim lngRetVal As LongPtr" to Function SaveWebFile so it reads:
Private Function SaveWebFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As LongPtr
lngRetVal = URLDownloadToFileA(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then SaveWebFile = True
End Function
Can you help answer these questions from other members on NexusFi?
When I started a risk file download after the changes above, the whole Excel-Application crashed without any further messages. I restarted Excel and tried downloading several times but Excel keeps crashing. To be sure I edited everything correctly here is the complete code of that section that causes the crash.
But please don't invest too much of your time on that. As I said, I am grateful for the time and work you spent already. Thanks again.
Unfortunately no. Posts #586-603 cover the same error you are seeing. I do not have the 64-bit version of Excel, so I really can't effectively troubleshoot problems with that version VBA.
If you use an alternate means to download the risk files it may work for the analysis, but I suspect it is likely that there would be other issues where the VBA doesn't translate properly from 32-bit to 64-bit.
I'm not sure if anyone else has any luck converting the VBA.