+ Reply to Thread
Results 1 to 9 of 9

Userform error

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Userform error

    Hi all,

    I have a userform with a label, text box and two command buttons, one called 'OK' and the other is called 'Cancel'.

    My code behind it is as follows:

    Please Login or Register  to view this content.
    Once the user has typed in a name, I would like this to be put in row(1), in the column after the heading "Time".

    My userform pops up ok but I am unable to interact with it. Whether I press cancel or type in a name and press continue, nothing responds.

    Does anyone have any advice as to what could be wrong please?

    Thanks
    Last edited by Jessica.Bush; 09-13-2010 at 05:31 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Userform error

    It'd be easier, at least for me, if you'd post a sample workbook. Then it's more obvious what the elements on the form are called, etc.

    That said, there are probably lots of experts on here that will be able to provide a solution "sight unseen".

    Regards

  3. #3
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Re: Userform error

    Attached - thanks for your help!
    Attached Files Attached Files

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform error

    Your buttons are called CommandButton1 and CommandButton2, not OK and Cancel.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Userform error

    ... which you could appropriately change to btnOK and btnCancel in the Properties dialog for each.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform error

    and then adjust your code accordingly.

  7. #7
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Re: Userform error

    Thank you - am now going to go away, really annoyed at myself for making such a stupid error and posting on it!

    Thanks once again for your help.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Userform error

    and then adjust your code accordingly.
    Yes, that did bear mentioning

    really annoyed at myself
    Don't feel alone. UserForms are very nit picky. Lots of balls to keep in the air, properties everywhere you look, events firing madly ...

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Userform error

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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