+ Reply to Thread
Results 1 to 5 of 5

Need help with timer/stopwatch...how to change activex button color...how to reset form

  1. #1
    Registered User
    Join Date
    06-11-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Need help with timer/stopwatch...how to change activex button color...how to reset form

    As my stopwatch/timer currently stands the activex “Start” button is gray. I would like to change the color to green. I have tried the following code “CommandButton1.BackColor = 12713921” but I am getting error messages. Can someone please show me how to insert this code so the Start button will be green? I still want the “Stop” button to flash between green and red.

    Also, when I want to start a new set of numbers I delete the current numbers but when I click the start button the new time data starts where the old time data left off. Is it possible for the code to have the new time data start back in cells b3 and b4?

    I have attached the worksheet.

    Thank you in advance for any help,
    yeto
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help with timer/stopwatch...how to change activex button color...how to reset for

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    If you want to start a new set of numbers, delete the rows in the table. Don't just clear them.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Need help with timer/stopwatch...how to change activex button color...how to reset for

    Alternative, Stop/Start buttons same position, enabled/disabled, flashing control by wait timer in module.
    Attached Files Attached Files
    Last edited by torachan; 12-16-2018 at 01:13 PM.

  4. #4
    Registered User
    Join Date
    06-11-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Need help with timer/stopwatch...how to change activex button color...how to reset for

    Quote Originally Posted by AlphaFrog View Post
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    If you want to start a new set of numbers, delete the rows in the table. Don't just clear them.
    Thank you for taking time out of your day to reply. This worked perfectly.

    Kind regards,
    yeto

  5. #5
    Registered User
    Join Date
    06-11-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Need help with timer/stopwatch...how to change activex button color...how to reset for

    Quote Originally Posted by torachan View Post
    Alternative, Stop/Start buttons same position, enabled/disabled, flashing control by wait timer in module.
    Thank you for taking time to provide the code. This gives me some ideas as to how I can make the stopwatch even better to suit my needs.

    Kind regards,
    yeto

+ 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. Create running stopwatch/timer with 1 button (start/stop). No reset button.
    By leeroy2612 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2021, 12:59 AM
  2. [SOLVED] VBA to move form button and ActiveX Control button, Shape position
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2018, 02:46 PM
  3. User form Change button color
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2016, 12:22 PM
  4. Change color of button when timer runs
    By Artos90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2016, 02:28 AM
  5. Change the text color of a form button in Excel Mac 2011?!
    By RiTz21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2014, 06:25 PM
  6. Replies: 0
    Last Post: 06-24-2013, 04:24 PM
  7. [SOLVED] Change Background color of a Form Button or ActiveX Button
    By Aeneren in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2012, 12:19 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