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 :)
 

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 -
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
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 1
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
L Duplicate calendar entries in Outlook 365 Using Outlook 2
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
AlphonseG Outlook 365 Outlook Crashes on setting SaveSentMessageFolder Outlook VBA and Custom Forms 2
S Outlook 2021 How to customize colors Outlook 2021 & Office 2021 on PC Using Outlook 0
D Outlook 2007 Recovering E-Mails Using Outlook 0
G Stop Outlook 365 adding meetings to calendar Using Outlook 0
HarvMan Using Emojis in Outlook 365 Using Outlook 3
D Gmail mail is being delivered to a different email inbox in Outlook App 2021 Using Outlook 2
Albert McCann Outlook 2021 Outlook Display of HTML Email from two senders is glitchy Using Outlook 0
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0
K Outlook for Mac problems Using Outlook 0
D Outlook app 2021 & iCloud PST issues Using Outlook 2
M c# vsto Outlook.ApplicationEvents_11_NewMailEx Outlook VBA and Custom Forms 1
J Event/Meeting in Outlook Does Not Align with SharePoint Calendar Using Outlook 5
Christopher M Is it me, or is Outlook 365 BUGGY? Using Outlook 3
U Outlook on the iPhone cannot approve filtered Emails Using Outlook 0
J GoDaddy migrated to Office365 - Outlook Wont Add Account Exchange Server Administration 21
K Outlook 365 After migrating to Outlook 365, some contacts display in emails with prefixes Using Outlook 1
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
Horsepower Cannot delete gmail in iPhone Outlook outbox Using Outlook 1

Similar threads

Top