Hi
I select a cell and press the button and it inserts date and time in cell
I insert the start date and time in the ranges for F Column
I then insert a finish date and time in the range for G Column
I use this VBA code below with an Active X Control button
1. How do i limit the code to only use the following ranges
F5:F32 & G5:G32
F35:F60 & G35:G60
2. If there is a start date and time in say cell F5 and a finish date and time in G5 can cell H5 then calculate the difference in minutes
Example: [start cell F5] 01-Jan-2018 04:22 [finish cell G5] 03-Jan-2018 14:52 [H5 - minutes between the 2 dates]
H5 will be blank unless F5 & G5 have a date and time
Is it possible to add these 2 requests to the code above
Thanks
I select a cell and press the button and it inserts date and time in cell
I insert the start date and time in the ranges for F Column
I then insert a finish date and time in the range for G Column
I use this VBA code below with an Active X Control button
Code:
Private Sub CommandButton1_Click()
ActiveCell = Now()
End Sub
1. How do i limit the code to only use the following ranges
F5:F32 & G5:G32
F35:F60 & G35:G60
2. If there is a start date and time in say cell F5 and a finish date and time in G5 can cell H5 then calculate the difference in minutes
Example: [start cell F5] 01-Jan-2018 04:22 [finish cell G5] 03-Jan-2018 14:52 [H5 - minutes between the 2 dates]
H5 will be blank unless F5 & G5 have a date and time
Is it possible to add these 2 requests to the code above
Thanks