Solved

visio 2014 app icon in windows7 taskbar flashes, when app opened via Excel in early binding

Posted on 2014-01-17
2
677 Views
Last Modified: 2016-08-29
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
https://filedb.experts-exchange.com/incoming/ee-stuff/8329-MasterVisioFile.vsdm

Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/8329-MasterVisioFile.vsdm

---------------- 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.

Many thanks
Kelvin4
stub-call-visio-v1.xlsm
0
Comment
Question by:Kelvin4
  • 2
2 Comments
 

Accepted Solution

by:
Kelvin4 earned 0 total points
ID: 39790320
As an EE Answer last summer, Visio Guy  gave me this code to put the Visio window 'on top' and this alleviated this problem:

[in standard code module with visioApp as the visio,application]:
Call MWinAPI.BringWindowToTop(visioApp.WindowHandle32)

Module.MWinAPI
#If VBA7 Then
    '// 64-bit Visio:
    Public Declare PtrSafe Function BringWindowToTop Lib "user32" (ByVal lngHWnd As Long) As Long
#Else
    '// 32-bit Visio:
    Public Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As Long) As Long
#End If

Cheers
Kelvin
0
 

Author Closing Comment

by:Kelvin4
ID: 39790321
This question go no immediate response, so I offer this partial solution
Kelvin4
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visio 2013 - Making Connectors Cooperate 3 732
Visio custom numbering 2 47
Visio Grouped Shape Sheet Data 3 88
Extract Embeded visio objects 3 69
Have you ever created a custom Visio stencil – a collection of your own unique master shapes – and then created a drawing by dragging masters onto the drawing page? Have you then made changes to the stencil master and wondered why the shapes on the …
David Parker’s latest book, Microsoft Visio 2010: Business Process Diagramming and Validation, will give you the tools to turn flowcharts and other business diagrams into valuable, data-driven corporate assets. Armed with the knowledge you’ll gain f…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question