Disable the save pop-up before closing my stencil

Started by jfvert, December 22, 2016, 02:34:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jfvert

Hi guys I just wrote a code in a stencil that actualy change the stencil. So before closing my document, visio always ask me if I want to save this stencil but i NEVER want to.... is there a way I can remove that save pop up? I tried to save my stencil with an other name with the event Before document close but unfortunately the pop up arives before my document saving.


Thanks a lot

jfvert

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

jfvert

Hi Paul

Once again thanks for your fast anwser! I tried this : Documents("Name_of_my__stencil.vss").saved = true  in my Before document close... but it still doesnt work...
can you help me with that? Did i missplaced the code or something?! 

thanks a lot

jfvert

Paul Herber

That code isn't correct. When you are writing to the stencil you must be refering to the document in some way; show us some of that code.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

jfvert

This is my code... there is only one line wich is in my stencil before closing event...

Paul Herber

What I mean is, you must have other linesa of code referencing that document, show us some of that.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

jfvert

Hi paul here is the code that change the document so Visio ask me to save it before cling.

Thanks again and happy holidays!

jfvert