PC Review


Reply
Thread Tools Rate Thread

How do I force user to enter their ID# before filling other data?

 
 
Doc Pete
Guest
Posts: n/a
 
      28th May 2009
I am setting up a worksheet to help our staff calculate customer transaction
costs. I want to prevent the staff from entering any data into the worksheet
until they have entered their employee ID in the employee ID cell. In other
words, I want all other data entry cells to remain locked until the person
filling out the worksheet has typed in his or her employee ID.

Thank you for your help.
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      28th May 2009
One way is to not allow ANY entries until entered. Right click sheet
tab>view code>insert this

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Range("a1") = "" Then
MsgBox "Enter ID in A1"
Target = ""
End If
Application.EnableEvents = True
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Doc Pete" <Doc (E-Mail Removed)> wrote in message
news:CC2659E3-0A9D-45E6-8291-(E-Mail Removed)...
>I am setting up a worksheet to help our staff calculate customer
>transaction
> costs. I want to prevent the staff from entering any data into the
> worksheet
> until they have entered their employee ID in the employee ID cell. In
> other
> words, I want all other data entry cells to remain locked until the person
> filling out the worksheet has typed in his or her employee ID.
>
> Thank you for your help.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Force User to Enter Data. =?Utf-8?B?amZheg==?= Microsoft Access Form Coding 3 13th Aug 2007 03:32 PM
on first startup force user to enter data in certain tables =?Utf-8?B?dGhlX2R1cmFjZWxsX3JhYmJpdHQ=?= Microsoft Access Form Coding 15 7th May 2007 03:50 PM
data validation list: how do i 'force' a user to enter data from the list? showsomeidnow Microsoft Excel Misc 4 1st May 2007 05:49 PM
data validation list: how do i 'force' a user to enter data from the list? showsomeidnow Microsoft Excel Misc 2 29th Apr 2007 11:09 PM
Force user to enter data Chris Microsoft Access Form Coding 4 18th Nov 2003 01:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 PM.