After a few hours of searching I can not find any examples of how to perform this.
I am trying to create 2 buttons on my excel sheet for time tracking purposes (for easily logging my day to day activities). A clock-in button, and a clock-out button. The buttons are set up and work, with the proper script. Currently they just write the current time to the selected cell using the following:
ActiveCell.Value = Time
This works fine, but I would like something a little more automated. What I would like each button to do is scan the column (clock-in for example is column C) from row 2 to the first blank cell, then insert the current time into that cell (So C2 would have Time). Next time the button is pressed, it will input Time into C3. Next press would input Time to C4, etc etc etc. That is the basic idea of what I am trying to do.
I am trying to do this in Excel 2007, if that matters
Bonus:
How to do both clock-in/clock-out with one button. Not needed, but would be interesting to see.
Thanks,
Rich