sub or function not defined

D

dan

Hi - can anyone help me please.

I have recorded / (and slightly written) some simple macros to search
through a document and pull out data I'm interested in however when I run the
macro I get "Sub or function not defined" messages. They then run correctly
despite this - can anyone lead me on the path to what I can look at to stop
these messages popping up. The code still works but I have to keep ok-ing
the messages rather than letting it run right through.
 
G

Graham Mayor

It might help if you pasted your code into your message. Crystal balls are
not what they were :(

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
K

Kevin B

Open the VBA editor (Alt + F11) and arrange the Windows so you can see the
document as well as your VBA editor. The locate the cursor somewhere in
your macro and then press F8 to step through the macro one command at a time.
This will help you locate the line where the error is occurring.

It sounds like a typo to me.
 

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