+ Reply to Thread
Results 1 to 3 of 3

condition if the values ​​are in seconds "00"

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    condition if the values ​​are in seconds "00"

    hi.
    I have the worksheet named "Time" and in cell "A2" I have the format "hh: mm: ss", I need that when the cell "A2" in the seconds are "00", then it is inserted in a row "A3" and copy the value of "A2" to "A3".

    Thank you!
    Attached Files Attached Files
    Last edited by marreco; 05-06-2012 at 07:34 AM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: condition if the values ​​are in seconds "00"

    Olá marreco,

    The biggest change to the attached workbook was adding the Worksheet_Change event handler. This is triggered when the seconds in cell "A2" equal zero. There were a few minor changes like changing Worksheets("Plan1").Range("A2") to Plan1.Range("A2"). Plan1 the Portuguese code name for the worksheet and not the worksheet's name. I also commented out the call Call aleVBA in the RunTimer procedure because it is not needed anymore. Let me know if I missed anything.

    Plan1 Worksheet Change Event
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: condition if the values ​​are in seconds "00"

    was very good, thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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