Outlook 2019 VBA run-time error 424

Status
Not open for further replies.

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 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 :)
 
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 -
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
D Outlook 2019 is no longer asking for password ... Using Outlook 5
A Outlook 2019 folder counter Using Outlook 0
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
R Outlook 2019 accesses POP3 but says its offline (because of IMAP servers?) Using Outlook 0
T Outlook 2019 Not Using Auto Compete After Deletion of 365 Using Outlook 1
J Unable to delete folders in Outlook 2019 / Windows Using Outlook 0
F Outlook 2019 Outlook 2019 Add and Sync to New computer Comcast server Using Outlook 2
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
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
Albert McCann 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
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
D Delete Outlook emails from MS server Using Outlook 9
B Outlook tasks and PDF Using Outlook 4
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
L Outlook attachments from OneDrive as links Using Outlook 0
G Outlook 365 My iCloud Outlook doesn’t work after reinstalling Microsoft365 on Windows 10 PC – now I get error message on contacts and calendar Using Outlook 1

Similar threads

Back
Top