complie error /while trying to run macro's

  • Thread starter Thread starter marianne
  • Start date Start date
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?
 
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
 
Back
Top