Deselecting Masters in the Document Stencil

C

Chris

Hi all,

I have been creating stencils using the
Application.ActiveDocument.Masters.Add method in VB6, and
have noticed that it selects the master on creation.
Problem is though, I haven't found a way to deselect
programatically, and if a master is selected before I
create it, then they are both selected (same as shift-
click though the UI).

I am trying to make sure the user doesn't accidentally
drop several shapes at once, especially considering that
they may be hidden, and they wouldn't know if several were
selected.

Chris.
 
A

al

I use something like this

' put the selected page into the active window
ActiveWindow.Page = strPageName
' Start by deselecting everything
ActiveWindow.DeselectAll

al
 
C

Chris

Thanks for the response,

I do use the ActiveWindow.DeselectAll method quite a bit
in deselecting selected items from a normal drawing page,
and have also noted that if you change pages, selections
don't persist on the previous page, but it doesn't seem to
work for the Document Stencil.
The closest thing I was recently able to come up with is

Set winCurrent = Application.Windows(intOpenWindow)
winCurrent.Windows(intDocStencil).DeselectAll

where the integers are the respective window indexes, and
that also doesn't work.

*BUT* (looking at my comment about changing pages) I found
that closing the document stencil and opening it again did
the job.

Application.Windows(intOpenWindow).Windows
(intDocStencil).Close
Application.ActiveDocument.OpenStencilWindow
 

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