Link to home
Start Free TrialLog in
Avatar of Shanan212
Shanan212Flag for Canada

asked on

Userdefined Type Not Defeind

Sub SaveAttachments()
    Dim olApp As Outlook.Application

    Dim myNameSpace As Outlook.Namespace
    Dim myFolder As Outlook.MAPIFolder
    Dim myItem As Outlook.MailItem
    Dim myAttachment As Outlook.Attachment
    Dim I As Long

Open in new window



Hi, I am getting the error on this portion 'olApp As Outlook.Application'

Under Tools - Reference I do have 'Microsoft Office 14.0 Object Library' is enabled and I am using Office 2010 suite

Any help is appreciated!
ASKER CERTIFIED SOLUTION
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shanan212

ASKER

Aaah! Thats it :o I knew it has something to do with library but how can I forget 'outlook'! I must be tired :/

Thanks!