+ Reply to Thread
Results 1 to 6 of 6

Command Button

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Command Button

    Hi

    I have created a Command Button but I want it to display a Yes/No Box when I click it. How would I do this? The Yes button is to display the current Date & Time and the no button is just a Good Bye Message.

    Can Someone help?

  2. #2
    Registered User
    Join Date
    08-02-2011
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Command Button

    I have created a Yes/No box that appears when I click on a command Button. I am wanting to display the current Date and Time in another message box when I click YES. Any ideas?

  3. #3
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Command Button

    Assign your button to this macro:
    Please Login or Register  to view this content.
    Let me know if that isn't what you're looking for. Thanks!
    -Greg If this is helpful, pls click Star icon in lower left corner

  4. #4
    Registered User
    Join Date
    08-02-2011
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Command Button

    Brilliant.

    I had tried that earlier but couldn't get the display to work, but thanks to you it only took a few tweaks.

    Many Thanks

  5. #5
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Command Button

    You're certainly welcome. Remember to mark the thread solved if you're satisfied with the solution. Thanks!

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

    Re: Command Button

    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
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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