I am a nooby and I haven't gotten very far. So, the only help I need is how to declare the inbox as an object.
With this code I get a Runtime error'5'Dim oOlAp As Object oOlns As Object oOlInb As Object Dim oOlItm As Object Set oOlAp = GetObject(, "Outlook.application") Set oOlns = oOlAp.GetNamespace("MAPI") Set oOlInb = oOlns.GetDefaultFolder(olFolderInbox)
What am I doing wrong?
Thank you for the help!
edit: Sorry to clarify this is from within the excel application.