I bet the solution to this is easy but I can't just wrap my head around this. So basically this is how my table looks
start_time (A1) | stop_time (B1) |
---|---|
I want a macro that when it's clicked, it will go to cell A2 and put the current local time there. Clicked again, it goes to cell B2 and put the local time there. Clicked again, it goes to cell A3, then B3, A4, etc.
I think the logic is
- Check cell Ax for blank:
- If yes, insert the time
- If no, move to cell Bx. Is it blank?
- If yes, insert the time
- if no, insert the time in cell A(x+1)
I just don't know how to actually put this in code. Thanks in advance for your help!