When a new or existing .VDSM Visio 2013 file is opened, in a trusted location, via Excel VBA, the Visio application icon in the windows 7 taskbar flashes persistently after the visio file has opened.
This did not happen with Visio 2010, and with Visio 2013 it persists even after a shape is dropped via VBA onto the visio drawing canvas. The flashing only stops when the drawing is clicked. I'd like to suppress this flashing because it distracts/alarms the user, though it does not interfer with the running of the piece.
The flashing did not occur if the visio file was written to a folder that was NOT a 'trusted location', presumably because I had to enable macros via the enabling Dialogue box 'Microsoft Security Notice'.
It seems as if Visio 'thinks' its waiting for an ole process to complete, but no such process has been notified, and this is speculation beyond my experience.
I asked myself if I should have cleaned up an object in my Excel code, but the visio application and document objects are required throughout the original full -scale parent files, from which the code in the attached files has been extracted.
I attach here:
1. the Excel controller file "stub call visio v1.xlsm" which contains a minimal extract of the necessary code.
I have attached in EE_Stuff (.vsdm cant be uploaded here):
2. the Visio file, saved as: "MasterVisioFile.vsdm" . This file contains macros that are not used in this demo piece. Reference for location:
View all files for Question ID: 28341133
Direct link to your file
---------------- operation ------------
Place both files in the same folder and make them both trust their location. Open the Excel file, notice the notes by the command button, and click the command button to start the demo, which creates a working copy of "MasterVisioFile.vsdm" within the folder you have created. Using the 'Save As' dialogue box that appears automatically, please give the working copy file a unique name. No other actions should be required to complete the demo.