+ Reply to Thread
Results 1 to 26 of 26

Outlook objects with Office 2019 and runtime error -2147221233 Object could not be found

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Outlook objects with Office 2019 and runtime error -2147221233 Object could not be found

    I have an excel workbook that contains rows of appointment information that I created many years ago and its been working fine. One of my users has been upgraded to Office 2019. I unfortunately do not have it and am having problems trying to troubleshoot why the code isn't working for them.

    The flow of the tool is to filter a table based on a status field, and then delete all tasks and appointments from the filtered list. It then creates new tasks and appointments. As mentioned it has been working flawlessly and still does for users on office not using2019. I have used a copy of his file on my own pc and it runs without issues, so I know it isn't a case of deleted columns or something like that.

    Here is the sub that is giving the runtime error. It appears as if that outlook object isn't available in office 2019. Anyone run into issues with the outlook objects and office 2019?

    Please Login or Register  to view this content.
    Here are screenshots of the error and debugging.
    Untitled.png
    Untitled1.png

    In case you ask, here is the sub that creates the appointments

    Please Login or Register  to view this content.
    Last edited by Kaso; 05-09-2019 at 06:09 PM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    The error message clearly says 'An object could not be found' I think that tells it all.
    The object i question is Mileage
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Of course it does. But since I don't have 2019 I was wondering if anyone else has run into issues with the Outlook objects. The exact same file works on 2016.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Do you have a reference set to the Outlook object library? If not, have you declared the olAppointmentItem and olTaskItem constants?
    Rory

  5. #5
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    It works 100% on 2016. I thought about the library when the user told me about it but I couldn't find anything that said 2019 uses a different library.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    2019 does use a different reference, but it should be forwards compatible (but not backwards). Anyway, do you have a reference set?

  7. #7
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    No I don't because I don't have 2019. Can you provide a screenshot and I'll get the user to add the reference?

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    If you don't have a reference set to the Outlook object library, your code shouldn't really work on 2016 either since it would be creating the wrong kind of items. The code you have is a curious mix of what you would typically use with late binding, and with early binding.

    Anyway, does that user have any issues with Outlook itself? The error message is one that sometimes appears with Outlook when there is a profile issue.

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    MAC doesn't use the same libraries. Does the MAC have Outlook installed?

    I suggest you read here: http://www.rondebruin.nl/mac.htm

  10. #10
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    I have the reference for 2016, and it works in Excel 2016 with Outlook 2016. I don't have access to 2019 and therefore I am unable to add the reference for 2019. Do you have 2019? If so, what's the name of the reference library

  11. #11
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    The reference will upgrade itself when opened on 2019. That will be fine, as long as you don't then need to share the same workbook with other users. Personally, I would suggest late binding the code and doing away with the reference altogether.

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Like rorya says the reference updates automatically but does the 2019 version include Outlook and is it installed?

  13. #13
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    I believe iffuce 2019 includes Outlook as well. He does have it installed. He's in another province so I can't get to his PC short of doing a remote control. My other plan was to setup a virtual machine and install 2019 for 1 month and get it to work but i wanted to check here first to see if there was a simple answer.

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    You believe, well, even if this person is in another province this person can TELL YOU if it's installed, he/she got mail?

  15. #15
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Sorry, yes I know he has Outlook installed.

  16. #16
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Well someone with MAC and Office 2019 will have to look into it for you, sorry

  17. #17
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Why do you say MAC? He is running windows 10. I mentioned the VM because I don't want to upgrade my PC to office 2019. I run win10 with office 2016
    Last edited by Kaso; 05-10-2019 at 10:53 AM.

  18. #18
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    THIS IS WHY I SAY MAC you first text in #1

    The flow of the tool is to filter a table based on a status field, and then delete all tasks and appointments from the filtered list. It then creates new tasks and appointments. As mentioned it has been working flawlessly and still does for users on office not using 2019. I have used a copy of his file on my own pc and it runs without issues, so I know it isn't a case of deleted columns or something like that.

    Here is the sub that is giving the runtime error. It appears as if that outlook object isn't available in office 2019. Anyone run into issues with the outlook objects and office 2019?

  19. #19
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    And Office 2019 is NOT a Windows version

  20. #20
    Registered User
    Join Date
    04-25-2019
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    2016
    Posts
    9

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    I have confirmed with the IT folks. The PC is running Windows 10 with a retail copy of Office 2019 - products.office.com/en-us/get-started-with-office-2019

    I guess I will need to get a copy to troubleshoot and sort it out.

  21. #21
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Office 2019 is a Windows and Mac version.

  22. #22
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Not that I know of

    2016 or 365 and 365 can be used on both platforms cause it's webbased

  23. #23
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    https://products.office.com/en/get-s...th-office-2019

    And 365 is not web based - you have confused it with Office online.

  24. #24
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Okay, still 2019 is not windows version
    But that’s all besides the point the fact remains the OP has an issue with the code on a Mac

  25. #25
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    No he doesn't, as he's already stated; and yes, Office 2019 is a Windows version too.

  26. #26
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Outlook objects with Office 2019 and runtime error -2147221233 Object could not be fou

    Okay, stand corrected. That's what you get when you don't read your articles on time

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run time error 2147221233 (8004010f)
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-25-2024, 10:37 PM
  2. Replies: 4
    Last Post: 12-22-2018, 02:09 PM
  3. Runtime Error 9 with List Objects
    By kelseygueldalewis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2018, 02:11 PM
  4. Me.Hide Userform runtime error in Office 365??!!
    By Excel_Runner in forum Office 365
    Replies: 1
    Last Post: 09-07-2014, 05:23 PM
  5. outlook runtime error 2147221233
    By dannydias in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-05-2014, 06:08 AM
  6. [SOLVED] Issues with Outlook Object Library in different version of Office
    By mongoose36 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2014, 11:44 AM
  7. Variables declared as Objects throw error in OFFICE 10 -
    By tarheelmaria in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2011, 11:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1