+ Reply to Thread
Results 1 to 8 of 8

Run time error 424. object required in outlook 2013

  1. #1
    Registered User
    Join Date
    10-15-2018
    Location
    Leeds
    MS-Off Ver
    windows 10
    Posts
    7

    Run time error 424. object required in outlook 2013

    Hi
    I was trying to build a custom based form in outlook 2013. I got the tutorial on techrepublic (10-easy-steps-to-customizing-an-outlook-2010-form)

    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
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    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
    Last edited by 6StringJazzer; 10-15-2018 at 09:22 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Run time error 424. object required in outlook 2013

    This snippet of code is not enough to diagnose your problem without knowing more about your form. Which template did you use to create your form? What changes did you make after creating it?

    First, I suggest you declare all variables. I see you copied the code exactly from the techrepublic site (https://www.techrepublic.com/blog/10...ook-2010-form/) and they did not declare variables. The variable Control should be Object or possibly Control, though I think it's a bad idea to name a variable that since it is also an object type. Similar issue with FormPage. In my opinion this is not a tutorial but a recipe, and it allows people to follow the recipe without learning how or why it works.

    I can't reproduce your problem without having your form. I would suggest: Go to the VBA development window. Right-click on the name of your form in the left side where it shows the code structure. Select "Export File..." and save your form to any folder you want. It will create two files there. Attach those two files to your next post.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-15-2018
    Location
    Leeds
    MS-Off Ver
    windows 10
    Posts
    7

    Re: Run time error 424. object required in outlook 2013

    Thanks so my 6StringJazzer
    Well I am relatively new to Outlook VBA, but I am working on a project, as you mentioned I copied the steps and code on techrepublic site which I tried to replicate.

    According to techrepublic site, i clicked the "View Code" selection in the Form group menu, it didnt work
    I also pasted the code in the Visual Basic Editor, it didnt work neither.

    Find attach the form which I saved with .oft format
    Also the VB code which I saved with .bas

    Kindly help me rework the code, so the combobox can be autopopulated

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: Run time error 424. object required in outlook 2013

    It sounds to me (your attachment didn't work) like the code is in the wrong place - it must be in the View Code section of the form, not a regular module.
    Rory

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Run time error 424. object required in outlook 2013

    The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.

  6. #6
    Registered User
    Join Date
    10-15-2018
    Location
    Leeds
    MS-Off Ver
    windows 10
    Posts
    7

    Re: Run time error 424. object required in outlook 2013

    Thanks so much

    Strangely, file attached icon is not working

    Well I am relatively new to Outlook VBA, but I am working on a project, as you mentioned I copied the steps and code on techrepublic site which I tried to replicate.

    According to techrepublic site, i clicked the "View Code" selection in the Form group menu, it didnt work
    I also pasted the code in the Visual Basic Editor, it didnt work neither.

    Find attach the form which I saved with .oft format
    Also the VB code which I saved with .bas
    Both files was sorted in a folder myoutlook.zip

    Kindly help me rework the code, so the combobox can be autopopulated

  7. #7
    Registered User
    Join Date
    10-15-2018
    Location
    Leeds
    MS-Off Ver
    windows 10
    Posts
    7

    Re: Run time error 424. object required in outlook 2013

    I have uploaded the zip file in the manage attachement window. Bu still when i clicked Attached in the message window, it didnt work
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-15-2018
    Location
    Leeds
    MS-Off Ver
    windows 10
    Posts
    7

    Re: Run time error 424. object required in outlook 2013

    Hi
    Thanks for your urgent response. I have attached the screenshots of the process to zip files in png format. (Incase the initial formats didnt work)
    I created the simple combobox, and named it in the property
    So I clicked the view code to place the code, but it didnt work
    I also placed the code in the Visual basic editor, it didnt work neither.
    I followed everything and saved it appropriately

    Its outlook 2013
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run-time error '424' Object Required
    By Brad1125 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2016, 12:55 PM
  2. Run-time error '424' - Object Required HELP
    By EC37 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-15-2015, 11:38 AM
  3. [SOLVED] Run time error 424: Object Required in Outlook/Excel VBA
    By sirhacksalot in forum Excel General
    Replies: 9
    Last Post: 12-07-2013, 11:09 AM
  4. [SOLVED] Simple Calendar pop up macro --> error Run-time error '424': Object required
    By am_hawk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 10:38 AM
  5. Run Time Error 424:Object Required
    By ewalton87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2011, 09:33 PM
  6. Run-time error '424': Object-required
    By narrowgate88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2010, 12:22 PM
  7. Run Time error 424 Object Required
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2006, 02:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1