OUTLOOK VBA - Executing a macro

  Heefie 14:59 26 Oct 06
Locked

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 ?!?!?

Gaz

  VoG II 15:53 26 Oct 06

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

  Heefie 16:04 26 Oct 06

... 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.

Huawei P10 review

1995-2015: How technology has changed the world in 20 years

How Nearly Normal created super-fun papercraft for Google

47 iPhone camera tips to help you take better photos