+ Reply to Thread
Results 1 to 2 of 2

Help on MACROS

  1. #1
    Registered User
    Join Date
    MS-Off Ver

    Unhappy Help on MACROS

    Im using this VBA and i need to apply this to 10 different cells with 2 specific buttons of each cell (stop an start). Its a countdown task tracker.

    Public interval As Date
    Sub timer()

    interval = Now + TimeValue("00:00:01")

    If Range("A1").Value = 0 Then Exit Sub

    Range("A1") = Range("A1") - TimeValue("00:00:01")

    Application.OnTime interval, "timer"

    End Sub
    Sub stop_timer()

    Application.OnTime EarliestTime:=interval, Procedure:="timer", Schedule:=False

    End Sub
    Last edited by Isanum11; 01-15-2021 at 02:29 PM. Reason: Tags

  2. #2
    Forum Guru
    Join Date
    London England
    MS-Off Ver
    MS 365 Office Suite.

    Re: Help on MACROS

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    Also please post a sample speadsheet.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. [SOLVED] Sort Operation Works when Macros are called manually, but not when VBA calls the Macros
    By lovecolorado in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2019, 02:13 PM
  2. Multiple macros for several files that change weekly - where to store macros
    By janljan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-21-2018, 10:54 PM
  3. Cant hide worksheets after macros to force users to enable macros
    By Mboemoyo85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2015, 02:52 AM
  4. Replies: 0
    Last Post: 06-09-2015, 09:30 PM
  5. Replies: 5
    Last Post: 07-26-2012, 09:38 PM
  6. Macros: Data cleaning macros not producing expected outputes.
    By bertlogdi1 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 06-17-2011, 06:52 AM
  7. [SOLVED] choose default macros Not Enabled / Macros Enable Setting
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2006, 08:10 AM

Tags for this Thread


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