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
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
J GoDaddy migrated to Office365 - Outlook Wont Add Account Exchange Server Administration 1
K Outlook 365 After migrating to Outlook 365, some contacts display in emails with prefixes Using Outlook 0
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
M Understanding Outlook Identities Using Outlook 1
kburrows Outlook or Phone Combining Contacts? Using Outlook 0
P Outlook 2013 search no longer works Using Outlook 1
M Accessing ALL Outlook contact fields Outlook VBA and Custom Forms 2
C Outlook (desktop app for Microsoft365) restarts every time I save my VBA? Using Outlook 0
R MailTips and older Outlook versions Using Outlook 0
A iCloud Outlook Add In is causing Outlook 2021 to crash and got disabled Using Outlook 4
C How to import Outlook calendar? Using Outlook 0
HarvMan Outlook 365 loses "outlook.com" exchange server settings Using Outlook 1
HarvMan Outlook.com Account Using Outlook 3
D Office 365 Outlook desktop app prompts for all account passwords on startup Using Outlook 6
D Alerts in outlook Using Outlook 1
richardwing Auto forward email that is moves into a specific outlook folder Outlook VBA and Custom Forms 5
L Recommendations for Utility to Backup Outlook 365 Account Settings Using Outlook 2
J Recommendations for Outlook Duplicate Email Remover Using Outlook 6
O Outlook - How to embed font ? (If at all possible) Using Outlook 2
Z New minimum Outlook for Windows version requirements for Microsoft 365/Exchange Online Using Outlook.com accounts in Outlook 16
T How to configure Outlook for two users on a single Windows account Using Outlook 3

Similar threads

Top