Forum Discussion

Shylyn's avatar
Shylyn
Copper Contributor
Aug 16, 2021
Solved

Time Macros

I am trying to create a time sheet kinda workbook. I am wanting to set it up that when you click a button it will enter the current time. I need multiple buttons to do this to enter breaks, lunch, et...
  • HansVogelaar's avatar
    HansVogelaar
    Aug 16, 2021

    Shylyn

    Instead of setting the formula of a cell to "=NOW()", set its value to Now. For example:

     

    Sub SetTime()
        Range("D2").Value = Now
    End Sub

    .

     

Resources