Hi all,
This one's for experts only:
No specific code for my problem (original TOO big).
Beforhand i would like to say that my program works like a swiss watch under Excel XP/2003.
My problem is more general:
In my VBA code i manipulate a given line chart e.g. add a data label to the last data point of the chart. At a later point in the code i try to move this label to a different location.
Under XP/2003 this always works. But when run in 2007, it often happens that the data label has not been created by the chart engine yet and my program fails. Somehow VBA and the chart engine seem to be not in sync with one another. I'm fairly sure this is the problem.
What i am looking for is a method which ensures, that changes made to charts are executed (defined state) before VBA proceeds. At this moment i have no clue on how to resolve this.
Any ideas anybody? Maybe an event driven solution?
cheers,
Ray








Reply With Quote
