OUTLOOK VBA - Executing a macro

  Heefie 14:59 26 Oct 2006

I've created a VBA macro that processes attachments from a sub-folder.

It is called "KAattachments" & consists of a single module called "KA_attachments" which starts as follows :

Option Explicit
Option Base 1

Sub KAattachments()

If I execute this from within the VBA editor, using F8 or F5 it works perfectly, but if I try to run it from Outlook itself, as a macro, I get the error :

Sub of Function not defined

Any ideas ?!?!?


  VoG II 15:53 26 Oct 2006

Do you get the option to debug? If so what line is it erroring on?

  Heefie 16:04 26 Oct 2006

... I just get a little window that says that message with the options OK & HELP ... if I click OK it does nothing, if I click Help I get "Sub, Function, or Property not defined (Error 35)" and a list of possible errors that don't make a lot of sense to me (I'm no expert in this VBA, I program "on the fly" !!!) ...

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Fujitsu Lifebook P727 laptop review

Converse's new logo: the trainer brand looks to its heritage for a fresh identity

Mac power user tips and hidden tricks

Comment lancer Windows 10 en mode sans ├ęchec ?