J
Jessica.Hromiko
My program is supposed to bring up a window to ask the user which
shapes should exist independently on every page. Initially, shapes
only exist on the background page. If the user checks the checkbox
next to the shape on the form, then I copy that shape from the
background page and paste it to every page before. I need to be able
to keep the same name for that shape on every page (in case the user
wants to delete the shape from every page), but Visio change the name
of the pasted shape when pasted.
I figured I needed to save a reference to the copied shape and change
the name of the pasted shape by doing this:
I pasted the shape, then Set copiedShape =
Visio.ActiveWindow.Selection.Item(i), then I set the copiedShape.Name
to the original name, so that if the user wants to delete the shape on
every page using the form described previously, they can do so.
However, when I use Visio.ActiveWindow.Selection.Item(i), it gives me
"INVALID SELECTION IDENTIFIER". Do you know if there is a better way
to do this, or what my error means?
Thanks,
Jessie Hromiko
shapes should exist independently on every page. Initially, shapes
only exist on the background page. If the user checks the checkbox
next to the shape on the form, then I copy that shape from the
background page and paste it to every page before. I need to be able
to keep the same name for that shape on every page (in case the user
wants to delete the shape from every page), but Visio change the name
of the pasted shape when pasted.
I figured I needed to save a reference to the copied shape and change
the name of the pasted shape by doing this:
I pasted the shape, then Set copiedShape =
Visio.ActiveWindow.Selection.Item(i), then I set the copiedShape.Name
to the original name, so that if the user wants to delete the shape on
every page using the form described previously, they can do so.
However, when I use Visio.ActiveWindow.Selection.Item(i), it gives me
"INVALID SELECTION IDENTIFIER". Do you know if there is a better way
to do this, or what my error means?
Thanks,
Jessie Hromiko