我有一个关于在 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
这总是有效的。知道为什么吗?