PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Can't find macro
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Can't find macro
![]() |
Can't find macro |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

