Outlook.Application now produces error

Status
Not open for further replies.

avant-guvnor

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Today my Office 365 updated automatically to version 16.0.8625.2121.

Now all my vba code in Outlook 2016 with:
Dim oOutlook As Outlook.Application
and
Set oOutlook = CreateObject("Outlook.Application")

produces the following error on the Set statement:



is anyone else getting this or does anyone have a solution?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
An Excel macro I'm helping a guy with uses this and its working in current versions. (The first should be GetObject if outlook is open, then create it if it's not open but its his macro and it works...)

Set olApp = CreateObject("Outlook.Application")

If olApp Is Nothing Then
Set olApp = CreateObject("Outlook.Application")
-- snip--
 

avant-guvnor

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Are you running the macro from outlook or calling it from another program?

i use this this form in outlook macros:
Set oOutlook = Outlook.Application
All code is running from a macro in Outlook 2016. Code has worked for years until the recent Office 365 update.

Changed all Set oOutlook = CreateObject("Outlook.Application") to Set oOutlook = Outlook.Application. Code is now working. Still, it does not explain why/what changed in the Office 365 update.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I believe it might be related to the security changes they made in the last couple of updates, but don't recall changes to createobject mentioned - might have missed though as i was distracted by an illness/death in our extended family.
 

avant-guvnor

New Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I believe it might be related to the security changes they made in the last couple of updates, but don't recall changes to createobject mentioned - might have missed though as i was distracted by an illness/death in our extended family.
Thank you for the info and sorry for your loss.

Keep up the good work. All the best.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
Y VBA - Application Filedialog Hidden Behind Outlook Using Outlook 0
T Synchronize outlook appointments through web application. Using Outlook 1
O Outlook 2010 Stops Working When Accounting Application Tries To Send eMail Using Outlook 4
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
J Delays when changing from one application to another in Outlook Using Outlook 2
T How can I send e-mail from an Access 2010 application using Outlook not CDO Using Outlook 1
B OUTLOOK 2010 Set up wrong and now can't open application to fix it... Using Outlook 1
K Outlook 2007 - error opening the application Using Outlook 1
A Access 64 bit Outlook 2010 from 32 bit C++ application Using Outlook 1
N Business Application for Master Category List in 2010 Outlook's Business Contact Manager Using Outlook 1
U Outlook 2003- Incompatible Application - Using Outlook 1
S Error 'outlook cannot launch an application to handle d:\xxxxxx' when try to insert file. Using Outlook 1
K Cannot start Microsoft Outlook. Cannot open the Outlook Window. Incompatible application Using Outlook 1
W 'Windows Application Error 0Xc00000a5” error opening attached files or email link in Outlook Using Outlook 1
M On exiting Outlook 7 the application recovers and restarts Using Outlook 2
7 Faulting application outlook.exe, Stamp 4bf5c678 Using Outlook 6
T outlook\outlook.pst\ is in use and could not be accessed. Close any application that is using this f Using Outlook 6
J access to 'Local Settings\Application Data\Microsoft\Outlook' folders in Win XP Using Outlook 1
A turn Outlook into a Drag-and-drop application Outlook Wishlist 2
D Outlook 2007 Will Not Send Mail From C# Application Outlook VBA and Custom Forms 7
P Supporting threads in Outlook VBA application Outlook VBA and Custom Forms 1
D outlook.exe application error - breakpoint has been reached. fix? BCM (Business Contact Manager) 1
P Drag and Drop mails from Outlook to Clarion6 Application Outlook VBA and Custom Forms 5
W Outlook WAS facebook but there is no info for old accounts Using Outlook 0
E Can one still buy Outlook (or Office) 2016? Using Outlook 5
G Add to Outlook Contacts - Point to non-default contacts folder Using Outlook 0
E Outlook view grouping keeps changing Using Outlook 3
Wayne Outlook locks up when opening "Manage Rules & Alerts" Using Outlook 0
G Personal Settings within Outlook Using Outlook 3
M Outlook 2013 reminder email by using Outlook vba Outlook VBA and Custom Forms 2
H Outlook 2019 Certificate error Using Outlook 2
B Outlook 2013 erratically deleting original file that is attached Using Outlook 0
V Outlook Forms: Formatting a Label with 2 different styles Outlook VBA and Custom Forms 1
M Outlook 2016 Outlook randomly unhides from taskbar Using Outlook 12
X Using Outlook 2013 and Outlook 365 Using Outlook 1
V Date and/or time error in Outlook Form Outlook VBA and Custom Forms 0
D Sending email from Office 365 alias in Outlook Using Outlook 4
B Spam folder not showing in Outlook Using Outlook 5
ThinkToday Calculate reply time of outlook mail Using Outlook 1
M Microsoft 365 Outlook keeps requesting password on Local Account Using Outlook 1
I Outlook 365 - import/attach PST file that used POP3 Using Outlook.com accounts in Outlook 0
e_a_g_l_e_p_i I think it may be time to upgrade from Outlook 2010 Using Outlook 3
K Outlook 2016 Outlook, Chrome, and Clio Using Outlook 5
O Outlook tasks - Add text column with multiple lines Using Outlook 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
HarvMan Outlook 365 PST Report Using Outlook 1
V Upgraded Outlook Using Outlook 1
J Outlook 2010 Outlook/Win7 Client logging Event ID 36887 Using Outlook 0
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
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 2
Similar threads


















































Top