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
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 13
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
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
Ken Pascoe Outlook Categories Quick List Using Outlook 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 1
talla Can't open Outlook Item. Using Outlook 0
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
P Importing other e-mail accounts into Outlook Using Outlook 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3
B Inconsistent handling of message read/unread status by Outlook Using Outlook 3
R Rogue Outlook Rule ? Using Outlook 2
S vba outlook search string with special characters Outlook VBA and Custom Forms 1
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
P Outlook calendar and contacts sync problem-outlook disconnects Using Outlook.com accounts in Outlook 2
HarvMan Toggle between calendar and email in Outlook 365 Using Outlook 7
V Outlook error 500 Using Outlook 2
F Email being marked as Spam by Gmail and not being visible in Outlook Using Outlook 5
S Mac Outlook 365 Questions Using Outlook 1
M Outlook calendar is missing Using Outlook 2
G Save and Rename Outlook Email Attachments Outlook VBA and Custom Forms 0
G Trigger script without restaring outlook Outlook VBA and Custom Forms 7
T Have you written an articles about Outlook? Using Outlook 3
V Compound IF, OR, AND in Outlook form Outlook VBA and Custom Forms 4
A Any way to make Outlook Calendar invitations look right to Gmail/Google Calendar users? Using Outlook 3
R Outlook 365 update sets delete from server flag Using Outlook 1

Similar threads

Top