+ Reply to Thread
Results 1 to 19 of 19

Error 424 : Object Required

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Error 424 : Object Required

    Hi, hopefully someone can help me, as I am perplexed by this.

    I have a form from where I am trying to create a value for something called F** - This is basically to check if the spreadsheet has a yes or no in a certain field, if it does, then a tick will be placed in the relevant check box.

    I have some data already inputted and it works fine (see below for code)

    But when I try to add F21 in I get an object required failure. I have copied and pasted from the line above(F21), change to F21 or any random name and the issue still appears. Please help

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Does anyone have any ideas on this, as I still can't work it out?

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    Do you have a control called F20?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    I have no control called F20 that I am aware of.

    All this is doing is taking the value that is already in the spreadsheet and using that value to determine whether the check box should be ticked or not. I have no control is the code at all.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    What to F1 to F20 refer to?

  6. #6
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Hi

    The form has 40 check boxes, and each one of them I have called F1 -- F40, only so I can show the check box as true if the cell contains the value yes, or unticked for the value no.

    Hope this helps.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    I'm confused, you say you don't have a control called F20, but you also say you have checkbox controls named F1-F40.

    Have you skipped F20?

    It might be an idea to attach a sample workbook?

  8. #8
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Error 424 : Object Required

    Sounds like you don't have an object that's named F21 on your form, add another textbox and change it's name to F21, also, since you're using textboxes, shouldn't you be using .text instead of .value? And based on your code, it looks like F1-F40 are the textboxes, and Feature1 etc are the checkboxes...correct?
    Last edited by VBA FTW; 03-08-2013 at 10:28 AM.

  9. #9
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Sorry the Controls are actually called feature_check1, 2 etc etc

    The F1, 2 etc are used solely to pull the content of the cell into a value, that I can then determine to show the box checked. see below

    Please Login or Register  to view this content.
    So basically F1 will take the value of cell A20 in the PSTN worksheet and if that value is Yes then the checkbox Feature1 will become ticked, and if the value is No then the checkbox Feature1 will remain unticked.

    This goes on and on until the 40th cell is checked. i have so far included all up to F20 but as soon as i enter the code for F21 I get the issue. I have tried with different names to F1, for example, featurevalue1, value1 etc etc and this does not work either.

    I am not fully clued on on VBA and excel, but I am managing ok, but this has me stumped

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    What are F1-F40 then?

    I really think it would help to see a sample workbook..

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  11. #11
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Quote Originally Posted by VBA FTW View Post
    Sounds like you don't have an object that's named F21 on your form, add another textbox and change it's name to F21, also, since you're using textboxes, shouldn't you be using .text instead of .value?
    Thats it, thank you very very much.

    I suppose that's what happens when you start a project, stop and then continue after 2 months of doing nothing.

    Feel quite embarrassed right now lol

    Thank you very much Norie and VBA FTW for your help.

    Norie, I have a textbox labelled F1....... etc and I have not put that in for F21 -- F40 (what an idiot)

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    Happens all the time to me when working with multiple controls, especially when they are named consecutively.

    A lot of the time I use a listbox instead of multiple checkboxes, it can be set up so that each item in the list has a checkbox.

    That might no be appropriate for what you are doing though.

  13. #13
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    I did look at a list box, but it would not have been appropriate for what is needed.

    This now works perfect, thank you.

    Back to the grind and coding then i suppose

  14. #14
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Error 424 : Object Required

    seems like you can shorten that code a lot
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  15. #15
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Thanks for that Joeseph - That has helped me loads

    I will now have less worn out finger tips with thanks to that

  16. #16
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    Just curious, how would would a listbox be unsuitable?

  17. #17
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    Well I have 43 checkbox's in total, and some of them will have other options once ticked, and some checkbox's will not be available unless another option is checked.

    For Example
    If you check box 31 then you be required to enter a telephone number.
    If you check box 22 then checkbox 40 will appear, if 40 remains unchecked you will be prompted to enter a pin number and if 40 is checked then a password will be required to entered.

    A bit long winded so it just seems easier to use checkbox's - bearing in mind my VBA knowledge was 0 at the start of this project

  18. #18
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Error 424 : Object Required

    Ah, so it isn't just a straightforward list of options or something like that.

  19. #19
    Registered User
    Join Date
    11-10-2011
    Location
    Leicester, UK
    MS-Off Ver
    Office 2013
    Posts
    21

    Re: Error 424 : Object Required

    No unfortunately not

    Plus you haven't met the guys that will be using it... not the sharpest tools in the box, so the simpler the better lol

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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