Search then Timestamp

geekboy.101

New Member
Joined
Apr 23, 2010
Messages
28
Hi,

I got a userform which contains a combobox which contains names of students, and 2 command buttons, Time In and Time Out (initially i wanted it to be just one button which changes between Time In and Time Out, but i haven't gotten around to searching for a way to do that). So what happens is a student looks for their name, clicks on time in and a name is entered under column A, then a timestamp is made on the adjacent cell under column B. Then if they click on time out, a timestamp is made under column C.

As you can see, it creates lots of potential problems. Biggest one is if the user clicks on time in twice, the data is entered twice, since the button works on finding the last empty row. If they click on time out without a time in. Column B is then left blank. So i got quite a number of kinks i need to work out.

First is, how do I ask the command button to look first on the list under column A if a name is entered in there already and send out an error alert that the person has already timed in.

As for the second question, i think i can prompt the macro to send out a popout dialog box if column b is empty.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I might incorporate that... but I apologize I forgot I already asked this question in this same forum and then I posted a new one... please delete this thread and look at the newer thread. I'm posting my practice file in there for anyone to mess around with. Sorry admins.
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top