+ Reply to Thread
Results 1 to 2 of 2

Userform: Can you capture the selections from command buttons and call macros on close

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Heckmondwike, England
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    54

    Userform: Can you capture the selections from command buttons and call macros on close

    Good Morning,

    I have a userform that has several command buttons, the trouble is I have set the buttons to call the macros once clicked. However in real life people make mistakes and I imagine some people would want to change the button they click after clicking another.

    The question I am asking is the following:

    Is there a way on a userform to capture the selections people make and then call them when the final button is clicked? That way even if they change their mind the selections will not return an error?

    Thanks in advance.

    Darren

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Userform: Can you capture the selections from command buttons and call macros on close

    Hi,

    You might store the pattern of clicks onto a sheet and display it on the form and allow the user to decide an auto click or a manual click option.

    It would also be required to build a case function to call the relevant command.click function in the code.

    Happy Computing.

+ 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