Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving outlook email
#1
Hello

I am trying to create a macro to save outlook attachments.

typelib Outlook {00062FFF-0000-0000-C000-000000000046} 9.2
Outlook.Application a._getactive
Outlook.Inspector i = a.ActiveInspector
Outlook.MailItem n = i.CurrentItem
Outlook.Attachments p = n.Attachments
p.Item(1).SaveAsFile("c:\taimport.txt")

when i run it it i get the error:- invalid interface pointer. Use _create or other function to create or get object

Can anyone help

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)