Bizarre behavior

C

Chuck Bowling

I've been working on a Visio project here for a while now and ran across
something I don't have a clue about.

This is the first time I've attempted to use a compiler directive in Visio
VBA and it bombed big time.

If I put the two lines below in the ThisDocument module Visio will start and
immediately exit leaving to file in an opened state.

'-----------------------------

#Const xyz = 1

Dim WithEvents winActive As Visio.Window

'----------------------------


Am I doing something wrong or is the problem elsewhere?
 
Top