Can't find macro

J

Jürgen Doubrawa

Hello Everyone!

I have a basic problem with outlook 2002 / 2003 macro programming.
I made a macro with VBA. It works if I start it in VBA.

But when I start it with outlook with a button it says the macro can't be
found.
When I start it through the Menu: Tools->Macros->Macro and choose execute
the it says:
Sub or function not defined.


what did I do wrong?

in VBA I created a module in the vbaprojects.otm file.
I have by the way no idea what the difference is between a module
and a ms office outlook object. In vba there is a default object called
ThisOutlookSession.


help please!

greetings Jürgen Doubrawa
 
K

Ken Slovak - [MVP - Outlook]

Show the macro code you are using. Is this a Sub with no arguments
passed to it? Is it declared as Private or Public?
 
J

Jürgen Doubrawa

I found the error.
I didn't set up the macro right. had to add a procedure.
now everything works fine.

thanks anyway

greetings jürgen
 

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