Problem with ActiveDocument

L

Lars Eulberg

Hallo,

I've a very stupid problem with the ActiveDocument property in Word 2000.
The First call of a Macro stops without any Information during ther call.
But the following calls work fine.

A simple example:

Sub MAIN()
Dim d As Document
MsgBox "Hallo1"
Set d = ActiveDocument
MsgBox "Hallo2"
End Sub

The first Hallo-Dialog will be shown, but the second not, if you call the
Macro for first time.

Is there anyone who knows this problem, and perhaps a solution?


Thanks for help

Lars Eulberg
 
W

Word Heretic

G'day "Lars Eulberg" <[email protected]>,

Rename it from Main first. (The code runs fine on my machine)

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Lars Eulberg reckoned:
 

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