Shuvam Senapati
New Member
- Joined
- May 23, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hello,
I have a Macro that runs a solver when called. My requirement is to call the macro multiple times so that we can run the solver for particular number of times. But after executing the VBA code to run the solver, the code runs for 4 to 5 times but then throws this error : " pywintypes.com_error: (-2147023170, 'The remote procedure call failed.', None, None) ".
We suspect it might be because the cache fills up after running the solver 5 times. So I want a code that can be appended in the end of my VBA code which clears the cache everytime upon its execution.
I found this on internet, but this only clears pivot table and other handful of excel objects but not the entire cache.
Can someone please help me with this ?
I have a Macro that runs a solver when called. My requirement is to call the macro multiple times so that we can run the solver for particular number of times. But after executing the VBA code to run the solver, the code runs for 4 to 5 times but then throws this error : " pywintypes.com_error: (-2147023170, 'The remote procedure call failed.', None, None) ".
We suspect it might be because the cache fills up after running the solver 5 times. So I want a code that can be appended in the end of my VBA code which clears the cache everytime upon its execution.
How to Clear Excel Cache
There’s no doubt that cache memory is handy and that every computer program relies on it. It helps software remember the most used functions and values and stores frequently used files. However, if you don’t clear the cache
www.alphr.com
Can someone please help me with this ?