+ Reply to Thread
Results 1 to 2 of 2

Excel Timer function

  1. #1
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Witbank, SA
    MS-Off Ver
    Excel 2013
    Posts
    268

    Excel Timer function

    Good day,

    In cell A1 we have the word "one", and in B1 we have the word "two". Would it be possible to have a timer function run for 5 seconds, counting from 5 to 0, and everytime the timer reaches 0, the word in A1 is copied and pasted into cell C1, the timer resets and counts again to zero, this time when it gets to zero, it copies and pastes the word in cell B1 to C1. So it's like a flip flop function, with cell C1 changing it's value every 5 seconds. Also, this code needs to start running automatically when the sheet is opened. Is this at all possible with VBA?..

    Thanx for the help!!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Excel Timer function

    Hi, juriemagic,

    yes.

    Maybe have a look at Application.OnTime, Workbook_Open, Workbook_BeforeClose, Worksheet_Activate in the VBA Help or on this forum to find samples what you may use to solve.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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: 1
    Last Post: 12-12-2012, 08:46 PM
  2. [SOLVED] Timer function help
    By sammijojo412 in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2012, 02:30 PM
  3. [SOLVED] Stopping a Timer / Running a timer simultaneously on Excel
    By Paul23 in forum Excel General
    Replies: 1
    Last Post: 03-10-2006, 08:10 AM
  4. [SOLVED] Timer function
    By q5 in forum Excel General
    Replies: 2
    Last Post: 10-19-2005, 12:05 AM
  5. Timer function
    By zoot in forum Excel General
    Replies: 2
    Last Post: 02-13-2005, 10:06 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