+ Reply to Thread
Results 1 to 6 of 6

Command Button Triggered On cell = X

  1. #1
    Registered User
    Join Date
    01-22-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Command Button Triggered On cell = X

    Hey

    Just wondering if anyone knew of a macro that would allow for a command button to click if a specific cell is changed to a specific value?

    Thanks
    Last edited by Taz97; 01-25-2018 at 10:11 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Command Button Triggered On cell = X

    Put this in the code behind the worksheet (not in a module)

    Please Login or Register  to view this content.
    Design everything to be as simple as possible, but no simpler.

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: Command Button Triggered On cell = X

    ?
    Please Login or Register  to view this content.
    ps: 'CommandButton' must have the name "CommandButton1" or you must change it to another, in the code as well.
    Last edited by mjr veverka; 01-25-2018 at 11:24 AM.

  4. #4
    Registered User
    Join Date
    01-22-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    10

    Re: Command Button Triggered On cell = X

    Thanks this works!

    However just wondering if there was a way to trigger the button with a time inserted into the specific cell and not just one specific entry?

  5. #5
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: Command Button Triggered On cell = X

    What do you mean? And whose code did you use (so we can help specifically)?

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,153

    Re: Command Button Triggered On cell = X

    ?
    In my code for example, instead of:
    Please Login or Register  to view this content.
    insert
    Please Login or Register  to view this content.
    and make a check (e.g. function) of the "time entry" format in the "specific cell".

+ 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. Replies: 2
    Last Post: 02-02-2016, 10:27 PM
  2. Insert Command Button that will Activate Command Button on a Different Sheet
    By realvirtuality1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 02:11 PM
  3. Pop up button triggered by an action!
    By Laicram123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2015, 02:35 PM
  4. VBA code to create command button. Print all sheets then delete command button.
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2015, 05:18 PM
  5. Tab sequence from cell to active x button and then to a command button
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2009, 02:27 PM
  6. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  7. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM

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