Hi Tippers!
I'm desperate for a solution on a problem that's plaguing my customers. I've got an EXCEL VBA 2K & XP app that dynamically modifies both values and an image object) & prints a worksheet multiple times.
The image object's picture is changed with the .LoadPicture method. The problem is that apparently the LoadPicture spawns an asynchronous task to change the object's bitmap, and it is not always in synch with the VBA macro!! It randomly get images out of synch with the values on the sheet.
In thread707-585520, vfsb turned me on to the DoEvents, which I THOUGHT took care of the problem. (This was to fix the fact that the LoadPicture would not complete UNTIL the VBA code finished.)
I've since found out from a customer on a slow LAN that it isn't always enough. I've even inserted about 6 DoEvents throughout the code along the way to give it every chance.
HELP!!! Is there anyway to test for / force the completion of the bitmap change (LoadPicture) before continuing in my code?
This is one will be a lifesaver for me and is begging for a star!
THANKS!
TMKTECH
I'm desperate for a solution on a problem that's plaguing my customers. I've got an EXCEL VBA 2K & XP app that dynamically modifies both values and an image object) & prints a worksheet multiple times.
The image object's picture is changed with the .LoadPicture method. The problem is that apparently the LoadPicture spawns an asynchronous task to change the object's bitmap, and it is not always in synch with the VBA macro!! It randomly get images out of synch with the values on the sheet.
In thread707-585520, vfsb turned me on to the DoEvents, which I THOUGHT took care of the problem. (This was to fix the fact that the LoadPicture would not complete UNTIL the VBA code finished.)
I've since found out from a customer on a slow LAN that it isn't always enough. I've even inserted about 6 DoEvents throughout the code along the way to give it every chance.
HELP!!! Is there anyway to test for / force the completion of the bitmap change (LoadPicture) before continuing in my code?
This is one will be a lifesaver for me and is begging for a star!
THANKS!
TMKTECH