G
googull
I am executing the following in Visio 2002:
--------------
Dim newshape, ClonShp, IntoShp as Visio.Shapes
'IntoShp is a subshape of the group that I want to clone into.
Set newshape = IntoShp.Parent.Drop(ClonShp, 0, 0)
-------------
in an effort to clone a shape into a group. It works when I run the
subroutine once. But whenever I call the subroutine more than once it fails
on the 2nd call with a "Run-time error (86db089c) Operation succeeded but no
object returned". Unfortunately it really doesn't succeed. I've tried
recoding many ways but always get the same result. Any advice on this error
or what I may be doing to fail this would be appreciated.
--------------
Dim newshape, ClonShp, IntoShp as Visio.Shapes
'IntoShp is a subshape of the group that I want to clone into.
Set newshape = IntoShp.Parent.Drop(ClonShp, 0, 0)
-------------
in an effort to clone a shape into a group. It works when I run the
subroutine once. But whenever I call the subroutine more than once it fails
on the 2nd call with a "Run-time error (86db089c) Operation succeeded but no
object returned". Unfortunately it really doesn't succeed. I've tried
recoding many ways but always get the same result. Any advice on this error
or what I may be doing to fail this would be appreciated.