+ Reply to Thread
Results 1 to 7 of 7

UserForm not recognized

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    UserForm not recognized

    In the attached extract, by running UFStage4 then clicking some of the checkboxes and then the Command Button the program shows an error message "Object Required" .
    The highlighted code is:-
    [CODE][/Me.Hide
    UserFormQuote.ShowCODE]

    UserFormQuote does exist nd I can't understand why it is not recognized.
    I suspect I might feel a bit stupid when the reason is pointed out to me, but I will risk that and ask if anyone can help me see what the problem is.
    John
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: UserForm not recognized

    Hi,

    I think that you you are referencing a Control Object (UFStage3.TBCustomer)in the UserForm_Initialize Procedure that doesn't exist. This will raise error 424.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: UserForm not recognized

    You don't have a userform called UFStage3
    Please Login or Register  to view this content.
    In:
    Please Login or Register  to view this content.
    Last edited by Kyle123; 03-11-2015 at 06:01 AM.

  4. #4
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: UserForm not recognized

    sweep,
    Thanks for your interest. I am dumbfounded by your comment, as although the application does have a UFStage3 I thought I had left it out of the extract I attached. Is it there but hidden?
    For what its worth UFStage3 does have a control TBCustomer.
    It is UserFormQuote in the code highlighted by the error message which says either Object Required or sometimes Object not found.
    John

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: UserForm not recognized

    No, it's not there

    That's because you don't have debugging set up properly, change the following and you'll see what's actually causing the issue:
    Debug.JPG

  6. #6
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: UserForm not recognized

    I can now see what you mean. I have remed out that bit of initialising code and as you have suggested the error message no longer appears and UserFormQuote shows up.

    However in the full version where UFStage3 exists I still get the Object Required message. Does this mean that I must look for a missing object that is not necessarily the highlighted one?
    John

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: UserForm not recognized

    No, it means that it can't find what you've referenced, either the userform name has a typo or the textbox does

    Can you give us a sample workbook with the right userforms in?

+ 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. [SOLVED] Date not being recognized
    By warpdesign in forum Excel General
    Replies: 5
    Last Post: 12-09-2014, 02:14 PM
  2. Some Characters are not Recognized on VBA
    By eddykk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2009, 08:27 AM
  3. [SOLVED] Command not recognized
    By WLMPilot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2005, 12:06 PM
  4. Value not recognized as value
    By Roadie in forum Excel General
    Replies: 2
    Last Post: 04-20-2005, 02:54 AM
  5. [SOLVED] Data isn't being recognized.
    By ConfusedDataMonkey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2005, 01:06 PM

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