Please HELP (without attachment)

chongkie

New Member
Joined
Jan 2, 2013
Messages
7
I am a REAL novice at this and am asking for your kind assistance in getting this going.
I've created a vehicle sign out log (as shown below).
1. Column "B" is where student will select their names (simple drop down menu);
2. Column "C" is where the student will enter their driver's license info.;
3. Column "D" is where the student will enter their destination;
4. Column "E", I was able to copy a code from this forum where the date is automatically entered triggered by Column "B";
4a. Can Column F be programmed to auto enter time, too?
5. Column "A" is where the student will enter the vehicle # which is provided by the guard-on-duty once columns B, C, D, E and F are filled.
This is where my hiccups are and would like the spreadsheet to work as follows:

During vehicle check-out:
1. Auto Save the workbook when closing (without the need for the user to save) once Columns A - E are filled;
2. Auto Lock the filled cells (A - E) before closing to prevent anyone from deleting entered information; Keep Columns G & H unlocked for vehicle turn-in.

During vehicle turn-in:
1. The user/student enters the date and time in Columns G & H (hopefully we can do an auto time entry also when "G" is filled). Then,
2. Auto Lock the completed columns to prevent tampering.

I hope I'm making sense!

Thank you in advance.

Chongkie
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
what formula / code did you use for Column E?
 
Upvote 0
Thank you for the response...

Here it is:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count > 1 Then Exit Sub

If Not Intersect(Target, Range("B2:B100")) Is Nothing Then


With Target(1, 4)

.Value = Date

.EntireColumn.AutoFit


End With

End If

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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