Object could not be found Error in Outlook 2007

Status
Not open for further replies.

vodkasoda

New Member
Outlook version
Outlook 2007
Email Account
POP3
I hope somebody can help me here ... to cut a long story short, I have had these VBA programs working for years but always run into problems when changing Outlook versions or Windows versions, I normally fix them reasonably quickly but I can't figure out what's wrong this time !!!

It may be the Outlook structure, or it may be something else, the truth is it is many years since I wrote it and absolutely ages since I last even looked at VBA code !!!

I am using the latest version of Windows 10 and Office Professional 2007.

This is the structure of my Outlook (ScreenHunter 63.png) ... and the relevant bits of code ... (ScreenHunter 64.png, ScreenHunter 65.png & ScreenHunter 66.png) ...

Then it crashes with the error in attachment ScreenHunter 67.png

It is surely something simple, but I just can't get my head around it, probably my age, but obviously not helped by not regularly programming :( !!!

Hopefully somebody can tell me what I need to change :)
 

Attachments

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
The windows version won't affect the code - and for the most part, if code works in 2007, it works in newer versions of Outlook (which doesn't affect you currently).

It says it can't find the object... i'm assuming it was the outlook item its processing. Was the item being processed an email message? NRDs, meeting requests, etc can cause macros to fail with similar errors.
 

vodkasoda

New Member
Outlook version
Outlook 2007
Email Account
POP3
Hi Diane, thanks for replying, yes, this program basically is my own Outlook Rules program ...
 

vodkasoda

New Member
Outlook version
Outlook 2007
Email Account
POP3
I get an enormous amount of E:Mails regarding a football game that I play and this program recognises those E:Mails and places them in specific Outlook Folders. I have a Folder called Kickabout (the name of the game) and a number of Sub-Folders within that Folder, as I understand it, the Kickabout Folder is at the same "level" as the Inbox.

I interrogate the Sender and the Subject of each E:Mail to get me the Folder where I want the E:Mail to go, so, for instance, the line ...

Set MyDest = GetFolder("\\Kickabout\Churchill")

... calls the GetFolder Function and should set MyDest to point at the Churchill Sub-Folder in order to execute the next line ...

MyEMail.Move MyDest

... and move the E:Mail to the correct Sub-Folder.

I must have originally got the GetFolder Function from an online site, as I don't understand what it's doing, it's certainly not my own code ... I have attached the whole Function to this post (ScreenHunter 69.png) ...
 

Attachments

vodkasoda

New Member
Outlook version
Outlook 2007
Email Account
POP3
I've solved it, previously my top level was called Gary, somehow when I have installed Word 2007 this time around I haven't renamed Personal Folders to Gary, so when I noticed that the Gary level wasn't there I removed it from my program but didn't replace it with Personal Folders !!!

Silly mistake but writing it all down like this helped me to resolve it, so thank you for listening :D !!!
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Thanks for the update.

On the GetFolder Function, it's floating around the internet... you need it if you use multiple data files and want to do something in the non-default data file - the code finds the correct folder.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
T Can receive but can not send get error: The attemped operation failed, an object can't be found. Using Outlook 3
B ERROR: Object could not be found: Attempted New Profile But still No Change Using Outlook 1
J Outlook 2003 configuration question-Object not found error message. Using Outlook 1
J Error - Attempted operation failed. An object could not be found. Using Outlook 1
N "The operation failed. An object could not be found" error message. when sending email in Outlook 20 Using Outlook 22
P Automate Outlook Start - No Active Explorer Object Found Using Outlook 10
J An attempt operation failed. An object could not be found at line5. Outlook VBA and Custom Forms 2
D Operation failed. An object could not be found. Using Outlook 2
M Outlook 2010 - The attempted operation failed. An object could not be found. Using Outlook 3
B "The attempted operation failed. An object cannot be found." Using Outlook 7
B (0x8004010f): 'The operation failed. An object could not be found Exchange Server Administration 6
N "The operation failed. An object cannot be found." when pressing send Using Outlook 2
S Outlook 2010. Keep getting the message "An operation failed. an object could not be found" when hitt Using Outlook 1
A Outlook 2010 Rules and Alerts: The operation failed. The object cannot be found. Using Outlook 3
N Can't view T Do items in task list get 'object not found' ? Using Outlook 3
M attempted operation failed. an object could not be found Using Outlook 3
H Outlook 2003 in Windows 7 will not send and receive: Message "object cannot be found" Using Outlook 4
B Task List in To-Do Bar 'The operation failed. An object could not be found' Using Outlook 3
G When clicking send and receive, I receive a message that says:__The operation failed, an object could not be found. Using Outlook 1
A Outlook 07, Win7 Operation failed. An object could not be found. Many fixes already attempted. Using Outlook 3
R "The attempted operation failed. An object cannot be found." Using Outlook 6
G Operation Failed. An object could not be found. Using Outlook 3
R Rules. object not found Using Outlook 4
M The Operation failed... An object cannot be found Using Outlook 13
M Cannot Send - "Operation failed. An object cannot be found" BCM (Business Contact Manager) 4
R How to get the Items object of the default mailbox of a specific account in a multiple account Outlook? Outlook VBA and Custom Forms 0
A Run time error 424. object required in outlook 2013 Outlook VBA and Custom Forms 10
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
J Object Variable or With Block Not Set Error in Outlook 2016 and not Outlook 2013 Outlook VBA and Custom Forms 3
R Macro to copy email to excel - Runtime Error 91 Object Variable Not Set Outlook VBA and Custom Forms 11
J Outlook 2016 is killing me with object.links Outlook VBA and Custom Forms 2
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
R How can I retain embedded object with voting button reply? Using Outlook 5
G run-time 438: object doesn't support this property or method Using Outlook 2
K !Task 'mailaccountname' reported error (0x8004010F): The operation failed. An object could not be fo Using Outlook 7
P Error: Object does not support this method Using Outlook 1
T The ACL for object "<exchange mailbox user>" is not in canonical order Exchange Server Administration 4
D Sync OAB and Task 'Microsoft Exchange' Fails Error 0x8004010F: The operation failed. An object canno Exchange Server Administration 2
D Task "Microsoft Exchange Server" reported error (0x8004010F): 'The operation failed. An object could Exchange Server Administration 3
A EdgeSync homeMTA set Deleted object in AD, event 2937-validation Exchange Server Administration 5
P "Can't open this item. The object is not valid." Using Outlook 6
T Outlook2003 can't insert object Using Outlook 4
L Exchange 2010 Management Console crashes when opening exchange object properties. Exchange Server Administration 4
L Can't populate History of Business Contacts- receive 1st error: cannon load an object because it is not available, then 2nd: Cannot display this view Using Outlook 1
S Task 'Microsoft Exchange Server' reported error (0x8004010F): 'The operation failed. An object could Exchange Server Administration 7
F Can't create an object in a newer parent or container. Exchange Server Administration 3
M BCM error: Object reference not set to an instance of the object. Got this msg. BCM database will Using Outlook 2
A ActiveX component can't create object: 'VIA3OutlookAddin.Addin' Line No:8 Using Outlook 1
J 0x8DE00002 Object with Id 5e383750-b80a-4528-87a5-2a5304647a7e appears in more than one [Error] command Using Outlook 9
K Exchange 2010 ECP Reports - search for emails from external recepient get 'Object Reference not set to an instance of an object' error Exchange Server Administration 4
Similar threads


















































Top