Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 683
Default I don't know short title for what I need.

Here is what i have:

starting on row 9 on down to whatever row A B
C D
date of job
Emp Name ID# PIN#
Column A is a range of dates for different side jobs that an employee can
sign up for and work. And right now entering the proper pin# returns the id#
of the employee, which in turn returns the employees name.
When the proper pin# is entered (proper pin is verified only when the id#
is returned in C, otherwise C remains blank) I want a user form to appear
confirming that the employee wants to sign up for the date which appears in
the date of job column. Example

A B C D
date of job emp name ID# Pin#

11/1/04 john smith 123 2468 (upon
entering this pin)

User form appears "Confirm that you want to sign up for 11/1/04"
yes button no button

if yes lock the cell that contains the pin#
if no clear the cell that contains the pin#

I am sorry if this post is short on clarity I tried my best.
Thank You
Brian



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default I don't know short title for what I need.

Hi
for this you'll need an event procedure. e.g. the worksheet_change
event. See:
http://www.cpearson.com/excel/events.htm

--
Regards
Frank Kabel
Frankfurt, Germany

"Brian" schrieb im Newsbeitrag
...
Here is what i have:

starting on row 9 on down to whatever row A B
C D
date of

job
Emp Name ID# PIN#
Column A is a range of dates for different side jobs that an employee

can
sign up for and work. And right now entering the proper pin# returns

the id#
of the employee, which in turn returns the employees name.
When the proper pin# is entered (proper pin is verified only when

the id#
is returned in C, otherwise C remains blank) I want a user form to

appear
confirming that the employee wants to sign up for the date which

appears in
the date of job column. Example

A B C

D
date of job emp name ID# Pin#

11/1/04 john smith 123 2468 (upon
entering this pin)

User form appears "Confirm that you want to sign up for 11/1/04"
yes button no button

if yes lock the cell that contains the pin#
if no clear the cell that contains the pin#

I am sorry if this post is short on clarity I tried my best.
Thank You
Brian




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 212
Default I don't know short title for what I need.

Try this, with Worksheet_Change macro:-

Private Sub Worksheet_Change(ByVal Target As Range)
If Not (Target.Column = 4 And Target.Row 8) Or IsEmpty(Target) Then Exit
Sub
If MsgBox("Confirm that you want to sign up for " & Date, vbYesNo) = vbYes
Then
Target.Locked = True
Else
Target.ClearContents
End If
End Sub

Sharad

"Brian" wrote in message
...
Here is what i have:

starting on row 9 on down to whatever row A B
C D
date of job
Emp Name ID# PIN#
Column A is a range of dates for different side jobs that an employee can
sign up for and work. And right now entering the proper pin# returns the
id#
of the employee, which in turn returns the employees name.
When the proper pin# is entered (proper pin is verified only when the id#
is returned in C, otherwise C remains blank) I want a user form to
appear
confirming that the employee wants to sign up for the date which appears
in
the date of job column. Example

A B C D
date of job emp name ID# Pin#

11/1/04 john smith 123 2468 (upon
entering this pin)

User form appears "Confirm that you want to sign up for 11/1/04"
yes button no button

if yes lock the cell that contains the pin#
if no clear the cell that contains the pin#

I am sorry if this post is short on clarity I tried my best.
Thank You
Brian





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for short cut Pete_UK Excel Worksheet Functions 0 December 18th 08 05:09 PM
I can't think of a short title for this amour24 Excel Worksheet Functions 2 February 21st 07 04:57 PM
Named range=Column title,comumn title in cellB6 use B6in equation Graham Excel Discussion (Misc queries) 2 July 21st 06 10:03 AM
Show full path title in title bar? Nor New Users to Excel 4 November 4th 05 06:00 PM
Pasting Objects into Chart title and Axis title Sam Charts and Charting in Excel 1 June 6th 05 08:50 PM


All times are GMT +1. The time now is 10:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"