AutoOpen error

T

THE Burg

I tried to put a simple AutoOpen macro in my document. It will be specific
to this document so it needs to be in the doc, not a template. Now, when I
open the document, I get a "Compile error: Sub or Function not defined"
error. What does this mean, and how do I fix it?
 
G

Graham Mayor

Post the code!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
T

THE Burg

Sub AutoOpen()
Messagebox "Test"
End Sub

Graham Mayor said:
Post the code!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

It should be

MsgBox "Test"

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
T

THE Burg

Thanks Graham!

I can't believe I did that -- was looking right at the example when I typed
it too!

Paul
 
G

Graham Mayor

We have all been there :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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