View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
John Wilson John Wilson is offline
external usenet poster
 
Posts: 550
Default Userform Textbox in Password Validation

Golf,

You're already using a UserForm (which makes things easier).
You can set up a "VeryHidden" sheet with the names and passwords
and test for them with the UserForm.
You mentioned "large organization"???
Does everyone have a unique Application.Username??
That would be the easiest way to go.

employee's name populate the "Employee's Signature" cell in
the timesheet itself - make it look fancy by script font

From the same vlookup that you'll need to validate the password..
Shouldn't be a problem at all.

John



golf4 wrote:

Hi, everyone -

I'm in the middle of a large project in the form of developing a
Timesheet for my organization. With a help of a lot of people here, I
think a lot of the work and formatting is done.

The timesheet itself is based on a large table using VLookup with
table column for employee number, employee name,..... and timesheet
password. I have created a number of userforms and command buttons to
perform several taskings.

The problem I'm having now is to enable the timesheet to be validated
& sent electronically instead of printing it out and passing it around
(paperless process). I have a userform that now includes a textbox
(for the employee to enter their individual timesheet password), a
command button (to valodate the employee's password), a command button
(to save the worksheet) and a third command button (to close the
userform). The second and third buttons have already been coded. What
I'm looking for is assistance in how to develop code to validate the
employee's password - the password typed in the textbox.

I'm thinking of, maybe, using IF statements in the code to compare the
VLookup table's Cell A1 (which indicate employee number) and the
column including individual passwords. Would this be the easiest way
to do it?

The last issue would be, once the employee's password is validated, to
have the employee's name populate the "Employee's Signature" cell in
the timesheet itself - make it look fancy by script font,.....

Can anyone help me out on my "final" problems with my project?

Thanks for your continued assistance.

Golf