Changing Cells Content and Visualizing It

H

HUB

Hi

I´don´t have a lot of experience with VBA in Visio. I´m currently trying to simulate a simple process with visio and would like to continuously change the size of a shape (lets say a rectangle "grows" from height 1 inch to 2 inches in 10 seconds) with Visio and display the progress of the change. To do that, I figuered the easiest would be to manipulate the "Height" cell of my object in a loop

It works fine as long as I´m debugging and execute the code stepwise (F8). However, when I run the code, all I get is the end-result, while the "growing"-steps inbetween are not updated on the screen (and not in the cells). I´m working with Visio 2002 and thought the ".showchanges" property would do, but it doesn´t

Any Idea, what I might be doing wrong, or if this is feasible at all (with a different approach)

Thanx a lot for any help and hin
HU
 
A

Al Edlund

there are a significant number of things that need to happen under the
covers as you move through the loop (which can run faster than the needed
support functions). As a general rule anytime I do extended loops with a
shape I put a DOEVENTS instruction just prior to the Next instruction. This
allows the system to catch up to the program.
al
HUB said:
Hi,

I´don´t have a lot of experience with VBA in Visio. I´m currently trying
to simulate a simple process with visio and would like to continuously
change the size of a shape (lets say a rectangle "grows" from height 1 inch
to 2 inches in 10 seconds) with Visio and display the progress of the
change. To do that, I figuered the easiest would be to manipulate the
"Height" cell of my object in a loop.
It works fine as long as I´m debugging and execute the code stepwise (F8).
However, when I run the code, all I get is the end-result, while the
"growing"-steps inbetween are not updated on the screen (and not in the
cells). I´m working with Visio 2002 and thought the ".showchanges" property
would do, but it doesn´t.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top