VBA Visio 2002 and OpenEx

Has anybody else experienced that the flag argument to the Documents.OpenEx method have no effect in Visio 2002

I try :

Call Documents.OpenEx(FileName:=MyFileName, Flags:=vizOpenDontList + vizOpenMinimized)

But I see that the Visio document opens maximized and it also appears in the history list.

What am I doing wrong (I see that the Object Browser calls the argument Flags, while the help file calls it openFlags)

Thanks in advance



Answer this question

VBA Visio 2002 and OpenEx

  • Jack B

    Per the support engineer:

    We have seen your question about the VBA code in Visio2002, but we found that there is one problem in your code:

    Call Documents.OpenEx(FileName:=MyFileName, Flags:=vizOpenDontList + vizOpenMinimized)

    According to my understanding, should the flag name you mentioned in your code be visOpenDontList and visOpenMinimized rather than vizOpenDontList and vizOpenMinimized Would you please modify your code and try again to see whether the problem still remains

    -brenda (ISV Buddy Team)



  • Golden Eagle

    Brenda ,

    You are right, much red face and embarrassment on my behalf.

    Of course Visio constants start with vis rather than viz.

    Many thanks


  • andresdela

    no worries... glad it was an easy and quick fix! :-)

  • VBA Visio 2002 and OpenEx