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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top