Selection Iterations

S

Sachin

Hi

I am developping a macro that uses selected objects of a large visio
drawing. The macro works fine, but for some trials I will encounter
the macro selection not returning enough shapes than are actually
selected. For example, if I go to my drawing and select X amount of
shapes, The code is returning less than X amount. I have narrowed it
down to a few shapes now that I know the macro does not recognized,
and I thought it might be because they were grouped. They were not, so
I did some research and found this helpful article.

http://www.visguy.com/2008/05/17/detect-sub-selected-shapes-programmatically/

The second line is the piece of code I added after reading the
article, and it looks correct to me... but I am getting a compilation
error which higlights 'IterationMode =" and saying "Invalid use of
property". Does anybody know what I am doing incorrectly?

Set vsoSelect = Visio.ActiveWindow.Selection
Set vsoSelect.IterationMode = Visio.VisSelectMode.visSelModeSkipSuper

Thanks in advance.
 

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