Outlook 2019 VBA run-time error 424

useful43

Member
Outlook version
Outlook 2019 32-bit
Email Account
POP3
I have a very small and simple macro in VBA that was created in MS-Word, where it works fine, that I would also like to run in Outlook 2019, but unlike in Word, here it 'crashes' immediately with run-time error 424.

The code is:

Sub SuperScript()
With Selection.Font
.Name = "+Body"
.Size = 11
.SuperScript = True
End With
End Sub

It seems that Word VBA code does not run in Outlook (who knows why), but not being a programmer, I have no idea how to modify it to run in Outlook.

I would be very grateful for some help with this very small task.

Regards
useful :)
 

useful43

Member
Outlook version
Outlook 2019 32-bit
Email Account
POP3
I have a very small and simple macro in VBA that was created in MS-Word, where it works fine, that I would also like to run in Outlook 2019, but unlike in Word, here it 'crashes' immediately with run-time error 424.

The code is:

Sub SuperScript()
With Selection.Font
.Name = "+Body"
.Size = 11
.SuperScript = True
End With
End Sub

It seems that Word VBA code does not run in Outlook (who knows why), but not being a programmer, I have no idea how to modify it to run in Outlook.

I would be very grateful for some help with this very small task.

Regards
useful :)
I have solved my problem, so no need to respond to this.

Regards
useful :)
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
For the benefit of anyone who finds this thread - It will run, but you need to reference the word object model.

An example is here -
 
Similar threads
Thread starter Title Forum Replies Date
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
H Outlook 2019 intermittent search results Using Outlook 0
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
K Outlook 2019 Randomly Disconnecting from Gmail Servers Using Outlook 8
P Outlook 2019 UI changes after 20H2 update Using Outlook 1
Travis Lloyd Messages Won't Display In Outlook 2019 Home & Business Using Outlook 0
J Outlook 2019 i dont want to buy the snake oil ost to pst programs Using Outlook 1
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
witzker Outlook 2019 is cutting Picture Extension *.pn_ Using Outlook 3
A Outlook (and Office) 2019 Logging Using Outlook 2
witzker Open Contact missing in Outlook 2019 Using Outlook 2
C All Gmails don't show in Outlook 2019 Using Outlook 2
witzker Macro to move @domain.xx of a Spammail to Blacklist in Outlook 2019 Outlook VBA and Custom Forms 7
pcunite Outlook 2019/O365 Build 13127.20408 errors when using MAPI calls Using Outlook 1
T Changing Sent Items location in Outlook 2019 Using Outlook 0
J How do I disable advertising in Outlook 2019? Using Outlook 15
H Outlook 2019 Certificate error Using Outlook 2
R Outlook 2019 Using Outlook 0
C Outlook 2016/2019 hangs after being open for an extended period Using Outlook 4
F outlook.com Exchane Server corrupts data Since September 2019 Using Outlook.com accounts in Outlook 6
J Is it no longer possible to suppress Outlook 2019 Invalid Certificate name mismatch security alert via Registry? Using Outlook 1
J How to open OST file in Outlook 2019 & 2016 Using Outlook 1
L Outlook 2019 MAC sync error after working for 4 hours Using Outlook 1
A Outlook 2019 having issues with 'people search' and not making suggestions in email To: etc Using Outlook 12
T How to Export mailbox from Outlook 2019 to MBOX format? Using Outlook 1
W Outlook 2019, Outlook Proplus v1808/1809 Unexpected Calendar Cache Using Outlook 4
J VBA for outlook to compare and sync between calendar Outlook VBA and Custom Forms 1
D Outlook 2003 Mail Fails Using Outlook 1
K Closing external IMAP email... Outlook 2013 Using Outlook 0
A force outlook to default to MY calendar Using Outlook 3
E Outlook VBA change GetDefaultFolder dynamically Outlook VBA and Custom Forms 6
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 3
B Seeking help with Outlook rule Using Outlook 2
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
A Outlook Reminders not populating for certain events Using Outlook 2
O Moving "tasks" to inbox in Outlook 2016 Using Outlook 1
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
Z Remove GMAIL IMAP account from Outlook 2016 Using Outlook 2
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
B Outlook 365 Populate Outlook Task UDFs from a UDF text string Outlook VBA and Custom Forms 2
hstein POP3 latest Outlook Using Outlook 0
V Outlook 2003 and Windows 11 Using Outlook 4
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
A Reminder duplication Outlook and Outlook.com Using Outlook.com accounts in Outlook 5
F Moving Outlook to new PC Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3

Similar threads

Top