Run time error 424. object required in outlook 2013

Status
Not open for further replies.

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
Hi
I was trying to build a custom based form in outlook 2013. I got the tutorial on News, Tips, and Advice for Technology Professionals - TechRepublic

I followed the step and was able to add a combobox to the form as well as a VB Script.

But each time i run the form the combobos did populate

And when I run it through the VBA script in outlook, it gave error message: Run-time error 424. Object required.

The VB code is

Sub Item_Open()
Set FormPage = Item.GetInspector.ModifiedFormPages("General")

Set Control = FormPage.Controls("cboDepartment")

Control.PossibleValues = "Administrative;Accounting;IT"


End Sub

Pls any suggestion to correct this message.

The 2nd problem....
I would like to populate the combobox through excel range/ cells. Could anyone suggested how I can run excel in outlook VBA while connecting the excel range to populate the combobox

Thanks
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You need to edit the registry to allow script in custom forms.
See Custom Form Security Changes for more information.

The code likely errors in VB Editor because it cant find this object - Item.GetInspector.ModifiedFormPages("General")
 

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
THank Diane
I checked the link but I couldnt really understand what need to be done:

"You can use this sample registry file to add the Outlook 2013 32-bit/Windows 64-bit keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run. "

Below is the TrustedFormScriptList, but where do I save it to and how do i run it:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList]
"IPM.Contact"=""
"IPM.Contact.script-test"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Security]
"DisableCustomFormItemScript"=dword:00000000
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
paste this into notepad - if the published form is not called script-test, change the name to what you called it

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList]
"IPM.Contact"=""
"IPM.Contact.script-test"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Security]
"DisableCustomFormItemScript"=dword:00000000
 

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
ok. Now Its getting clearer.
You mean I have to paste the code in notepad, then save it or import the text file to the registry editor?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You can either save it (the stuff in the code window) as a reg file (paste into notepad, save, change the extension to reg) so you can double click to run it. Or browse to that location in the registry editor (creating the keys as needed) and create the values.
 

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
Hi Diane
Thanks again. Yes I was able to import the file into the registry successfuly, so there are 3 available file to be run. Each time I try to run each, especially the last one which has the form name, the window ask for value... I left it blank and nothing happened. So what should I fill into the value

Aslo will i run all the three information. (1) Default (2) IPM.Contact (3) IPM.Contact.General

Find attach the screenshot

1539680115739.png
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
that looks correct - there is no data, only the form name in the name field.
 

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
Hi Diane
Well I have decided to build the userform in outlook and just paste it to the outlook email body..
However, I want to PrintScreen the userform and paste in the outlook email body.
The code perfectly works fine when I built it in excel, but did work in outlook vba.
There is a problem with using the Application.Sendkeys in outlook

Can you offer any solution on how to use this command in outlook vba?

Here is my screenshot

1539768665431.png
 

a1003520

New Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server
paste this into notepad - if the published form is not called script-test, change the name to what you called it

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList]
"IPM.Contact"=""
"IPM.Contact.script-test"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Security]
"DisableCustomFormItemScript"=dword:00000000

Hi Diane
Just wanna be sure if I did the correct thing.. As per your suggestion.
The name of the form is IPM.Contact.NewContactForm (NewContactForm)
So will I enter the information as

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList]
"IPM.Contact.NewContactFrom"=""
"IPM.Contact.NewContactForm"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Security]
"DisableCustomFormItemScript"=dword:00000000
[/QUOTE]
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
P Run Time Error 91 when linking contact to task in VBA Outlook VBA and Custom Forms 1
Vijay Error in rule- Run a script Using Outlook 1
J Run time error when using unbound fields in form Using Outlook 1
G OUTLOOK 2007 UNABLE TO RECEIVE EMAILS CAN'T RUN INBOX REPAIR TOOL AND ERROR (OX8E0CCC18) Using Outlook 2
A vb6 run time error 5 when Outlook 2007 Explorer object displayed Outlook VBA and Custom Forms 1
C Auto Run VBA Code on new email Outlook VBA and Custom Forms 1
Aussie Rules Run a Script on an Incoming Email OK and then the Email reverts Outlook VBA and Custom Forms 0
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
B VBScript doesn't run on Recipient Email Outlook VBA and Custom Forms 2
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
Y Outlook 2013 Run A Script Outlook VBA and Custom Forms 4
O Outlook 2016 This rule will only run when you check your email in Outlook.... Using Outlook 4
B run scripts Using Outlook 1
Dave A Run macro on existing appointment when it changes Outlook VBA and Custom Forms 1
O Run macro automatically at sending an email Using Outlook 11
P errors appear every time I run SCANPST Using Outlook 3
B Outlook rule run a Script doesn't work Outlook VBA and Custom Forms 1
B Wanting to run a script that will filter any body that has a russian link in it. Outlook VBA and Custom Forms 5
O Having rules run on old mails noved to inbox Outlook VBA and Custom Forms 8
Bri the Tech Guy Registry Tweak to make "Run a Script" Action Available Outlook VBA and Custom Forms 2
Bri the Tech Guy Run Script rule not running for newly arriving messages Outlook VBA and Custom Forms 25
J Custom form code doesn't run Outlook VBA and Custom Forms 2
J VBA Run When Reply Outlook VBA and Custom Forms 4
Vijay Run script doesn't work in outlook Using Outlook 1
O VBA to Run Font Change on Outlook Startup Outlook VBA and Custom Forms 4
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
Diane Poremsky Run a Script Rule: Send a New Message when a Message Arrives New Slipstick.com Articles 2
Diane Poremsky Using Scanpst in Outlook Click to Run New Slipstick.com Articles 0
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
L Run a Script Rule doesn't work Using Outlook 5
B Can't run macro from QAT when emailing from Acrobat Outlook VBA and Custom Forms 0
J Outlook 2010 VBScript editor does not run code at all Outlook VBA and Custom Forms 0
X Outlook script to run excel data Outlook VBA and Custom Forms 1
D How to Run a Report Based on Age of Inbox Items Outlook VBA and Custom Forms 0
D RUN SCRIPT WHEN OUTLOOK IS CLOSE Outlook VBA and Custom Forms 1
L Cannot run script from rule Outlook VBA and Custom Forms 7
M Office 365 Click to run BCM (Business Contact Manager) 0
O modify vba to run it as script rule Outlook VBA and Custom Forms 8
D Must now "View on Facebook" for Mentions/Comments-Outlook 2013 click-to-run Using Outlook 2
P How many subs can run in one outlook VBA script Using Outlook 5
R Outlook won't run except in Safe mode problem Using Outlook 5
K Revert AutoArchive settings via GPO (Run Autoarchive every...) Using Outlook 4
Xueying run a script in rules, first time succeed, failed afterwards Outlook VBA and Custom Forms 3
G Outlook 2003 VBA Won't Run In Outlook 2010 Outlook VBA and Custom Forms 4
J Run Rules Now Using Outlook 1
Gary Brown Outlook 2013 VBA to run a rule Outlook VBA and Custom Forms 13
P Vba script including macro appears in rules but wont run Outlook VBA and Custom Forms 6
Jeff Rott Diane Question on "Use in a Run a Script Rule" Outlook VBA and Custom Forms 1

Similar threads

Top