Form control on a drawing

T

trashman

Get "This action will reset your project" warning from VB when closing a
diagram file that has an MS Form 2.0 control on the diagram page. Example:
after I insert a command button (from the toolbox on developer toolbar) &
then close the diagram file, the warning box appears once diagram is removed
from the Visio window. How can I prevent this warning?
 
T

trashman

No code except for MsgBox "Hello World" in the click handler for the button
control that I add to a blank drawing page ~~ template: Basic Diagram from
the Block Diagrams.
 
J

JuneTheSecond

Thank you trashman.
I've tryed it, but no message appeared.
"This action will reset your project" usually appears when
VBA are going to edit itself.
If the drawing has no other macro, such a simple macro might not
show the message.
 
T

trashman

does not happen, by the way, when i adding controls to other office doc
files.
it looks like on my system, unfortunately, some "dirt" has gotten into the
visio gears.
(i've copied the diagram file to another system & not had the behavior
appear there. same as your experience.) guess this one just gets filed in
the old windows mystery box of things we're not meant to know ;-)
 

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