Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

sub or function not defined

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dan - 26 Jan 2006 10:57 GMT
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.
Graham Mayor - 26 Jan 2006 12:49 GMT
It might help if you pasted your code into your message. Crystal balls are
not what they were :(

Signature

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hi - can anyone help me please.
>
[quoted text clipped - 5 lines]
> works but I have to keep ok-ing the messages rather than letting it
> run right through.
Kevin B - 26 Jan 2006 14:10 GMT
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.
Signature

Kevin Backmann

> Hi - can anyone help me please.
>
[quoted text clipped - 4 lines]
> these messages popping up.  The code still works but I have to keep ok-ing
> the messages rather than letting it run right through.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.