Enable "Edit Stencil" in macro

L

Leigh Clow

Hi,

I'm developing a macro that will ask the user for text input and develop a
custom icon from that input and insert it as a master shape into a stencil.
The problem is that unless I have the stencil already open and use the "Edit
Stencil" option, the macro crashes. Is there code for VBA to automatically
open a stencil and put it into edit mode? Thanks.

-Leigh Clow
 
P

Paul Herber

Hi,

I'm developing a macro that will ask the user for text input and develop a
custom icon from that input and insert it as a master shape into a stencil.
The problem is that unless I have the stencil already open and use the "Edit
Stencil" option, the macro crashes. Is there code for VBA to automatically
open a stencil and put it into edit mode? Thanks.

Use the OpenEx method of the stencilDocument
You will need to use the visOpenRW parameter value.
 
L

Leigh Clow

Hey Paul that helped a lot. Thanks.

Paul Herber said:
Use the OpenEx method of the stencilDocument
You will need to use the visOpenRW parameter value.
 

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