complie error /while trying to run macro's

M

marianne

using word or excel 2003 xp - I create a macro, but when
tring to run the Macro I get the following messages.

Compile error

invalid outside procedure

this command will stop the debbuger

Here's the action I have already tried.

Disabled virus scan, reinstalled software and I still get
same result. Can anyone help?
 
D

DA

Hi Marianne

Hard to say without seeing your code. Most likely this is
being caused because you're trying to call functions that
cannot be actioned outside of a module (Sub) routine.

Ensure you've got all your code inside of properly
defined Sub routines and check all your syntax
(especially things like missing brackets () on the end of
your sub name).

Example:
Sub Test()
<code>
End Sub

If you still can't resolve the error, you'll need to post
your code.

Hope that helps,
Dennis
 

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