PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Can't find macro

Reply

Can't find macro

 
Thread Tools Rate Thread
Old 18-02-2004, 11:08 AM   #1
Jürgen Doubrawa
Guest
 
Posts: n/a
Default Can't find macro


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


  Reply With Quote
Old 18-02-2004, 03:28 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Can't find macro

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jürgen Doubrawa" <bbembi_de@lycos.de> wrote in message
news:c0vh26$1cfte5$1@ID-173512.news.uni-berlin.de...
> 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
>
>



  Reply With Quote
Old 19-02-2004, 12:23 PM   #3
Jürgen Doubrawa
Guest
 
Posts: n/a
Default Re: Can't find macro

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


"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> schrieb im Newsbeitrag
news:eH%23DgUj9DHA.3012@TK2MSFTNGP09.phx.gbl...
> Show the macro code you are using. Is this a Sub with no arguments
> passed to it? Is it declared as Private or Public?
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Jürgen Doubrawa" <bbembi_de@lycos.de> wrote in message
> news:c0vh26$1cfte5$1@ID-173512.news.uni-berlin.de...
> > 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
> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off