LechlerFan
New Member
- Joined
- Mar 17, 2017
- Messages
- 1
I have no experience editing macros. I can make two things work individually (sort of) but can't get them to work together.
What I want is to have a button that says, "Start." The associated macro finds the first empty cell in a particular column (let's say column B), selects it, and inserts today's date (using "Ctrl+;"). The same macro would then also find the first empty cell in column C and insert the current time, using "Ctrl+Shift+;".
A second button would say "Stop," with a macro that searches column D for the first empty cell and inserts the current time. I think I can figure out the "Stop" macro if I can get a grip on the "Start."
The result would look like the below, where the "Start" button fills columns B and C, and the "Stop" button fills column D. Bill has not yet clicked the "Stop" button on the 17th, but when he does, it will fill the empty cell in that column. The next time Bill clicks the "Start" button, B5 and C5 will fill with the current date and time.
[TABLE="width: 400"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Start Time[/TD]
[TD]Stop Time[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Bill[/TD]
[TD]03/10/2017[/TD]
[TD]09:15[/TD]
[TD]13:43[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bill[/TD]
[TD]03/14/2017[/TD]
[TD]09:31[/TD]
[TD]15:30[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bill[/TD]
[TD]03/17/2017[/TD]
[TD]09:20[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Bill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense! Thanks!
What I want is to have a button that says, "Start." The associated macro finds the first empty cell in a particular column (let's say column B), selects it, and inserts today's date (using "Ctrl+;"). The same macro would then also find the first empty cell in column C and insert the current time, using "Ctrl+Shift+;".
A second button would say "Stop," with a macro that searches column D for the first empty cell and inserts the current time. I think I can figure out the "Stop" macro if I can get a grip on the "Start."
The result would look like the below, where the "Start" button fills columns B and C, and the "Stop" button fills column D. Bill has not yet clicked the "Stop" button on the 17th, but when he does, it will fill the empty cell in that column. The next time Bill clicks the "Start" button, B5 and C5 will fill with the current date and time.
[TABLE="width: 400"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Start Time[/TD]
[TD]Stop Time[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Bill[/TD]
[TD]03/10/2017[/TD]
[TD]09:15[/TD]
[TD]13:43[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bill[/TD]
[TD]03/14/2017[/TD]
[TD]09:31[/TD]
[TD]15:30[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Bill[/TD]
[TD]03/17/2017[/TD]
[TD]09:20[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Bill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I hope this makes sense! Thanks!