+ Reply to Thread
Results 1 to 3 of 3

how to make a sub or function that acts as a timer

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    how to make a sub or function that acts as a timer

    I would like to time my macro, so im looking for a VBA way to put a start time in a cell and the end time in a cell. then figure out the time difference between the two cells.

    i know that there is a way to enter in time by doing a Ctrl Shift Colon and that puts a time stamp in the associated cell. is there a way to do this with VBA and just put the start and end times for the macro and then have a formula that returns the difference between the start and end?

    so what i got working is kind of a hack (but it works). see both commands below. is there a better way to do this?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: how to make a sub or function that acts as a timer

    Please Login or Register  to view this content.
    is sufficient. You may also use Timer in VBA or GetTickCount API.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to make a sub or function that acts as a timer

    thanks izandol, that looks like the easiest to implement.

+ 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] how to make a sub or function that acts as a timer
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2016, 01:54 PM
  2. [SOLVED] how to make a timer ( stopwatch ) or countdown in Ms.Excel using macros
    By dolphino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2015, 10:49 PM
  3. How do I make a timer event in excel?
    By fosters_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 02:46 PM
  4. Replies: 1
    Last Post: 12-12-2012, 08:46 PM
  5. How to make a countdown timer on Excel?
    By benyam in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-30-2012, 07:17 PM
  6. How to Make a Count-Down Timer in Excel?
    By e4excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2009, 04:56 AM
  7. "Save As" function acts weird
    By Rodas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2009, 02:36 PM

Tags for this Thread

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