TheMadTree
New Member
- Joined
- Mar 23, 2015
- Messages
- 25
Good afternoon everyone,
Ever since I upgraded to Office 365, I keep having the same run time error in my outlook macro:
"Run-time error '-2147221233 (8004010f)':
The attempted operation failed. An object could not be found."
Now it is appearing when I am trying to assign a folder path to a variable:
I got the same error last week when I was assigning a specific workbook to a variable wb which was defined as 'set wb as workbook' (which ran previously multiple times without issue). I solved it by changing the way the variable was defined: 'set wb as object'.
Am I missing something? Does anybody know what is causing these errors? Or what I can do to solve them?
Thank you!
Ever since I upgraded to Office 365, I keep having the same run time error in my outlook macro:
"Run-time error '-2147221233 (8004010f)':
The attempted operation failed. An object could not be found."
Now it is appearing when I am trying to assign a folder path to a variable:
Rich (BB code):
Option Explicit
Dim ns As Outlook.NameSpace
Dim MyFolder As Outlook.Folder
Sub SelectFolder
Set ns = Application.GetNamespace("MAPI")
Set MyFolder= ns.Folders("MailboxName").Folders("Inbox").Folders("SpecificFolder")
End sub
I got the same error last week when I was assigning a specific workbook to a variable wb which was defined as 'set wb as workbook' (which ran previously multiple times without issue). I solved it by changing the way the variable was defined: 'set wb as object'.
Am I missing something? Does anybody know what is causing these errors? Or what I can do to solve them?
Thank you!