I am trying to make a excel based logbook for my employees so that I can get rid of paper based logs of daily output.
I want to have a button with a macro for each new log entry called "New Log Entry'
So far this is the VBA I have to auto fill date and time of entry
LogEntry Macro
'
'
Range("B6").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("C6").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("D7").Select
End Sub
My problem is that I need this macro to move to the next empty row and run =NOW() in colum B and C of that empty row respectively. This macro would then leave the cursor or active cell in row D of the empty row.
Thanks, any help would be greatly appreciated.
Kmit37
I want to have a button with a macro for each new log entry called "New Log Entry'
So far this is the VBA I have to auto fill date and time of entry
LogEntry Macro
'
'
Range("B6").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("C6").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("D7").Select
End Sub
My problem is that I need this macro to move to the next empty row and run =NOW() in colum B and C of that empty row respectively. This macro would then leave the cursor or active cell in row D of the empty row.
Thanks, any help would be greatly appreciated.
Kmit37