У меня вопрос о доступе к фигуре в Visio 2003.
...
dim ovp as visio.page
dim ovs as visio.shape
...
set ovs = ovp.shapes("#shapename#")
...do something with the shape
Это иногда не работает!
Выдает ошибку типа shape not found или аналогичную
...
dim ovp as visio.page
dim ovs as visio.shape
...
for each ovs in ovp.shapes
if ovs.name = "#shapename#" then
...do something with the shape
end if
next
Это всегда работает. Есть идеи, почему?