Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell F14 F16 Required if F22 or F23 is checked

Thanks Steve
Can you or someone help me a little more

My origanal went something like this
"F14 Required if F22 or F23 is checked unless it already
has information in it."
Here what I want to do

If cells F14 or F16 hasn't got any information in it and
you Enter an X
in cell F22 or F23 which turns F14 and F16 red. and
automatically
places the curser or tabs to F14. Then you enter
information in cells F14 and F16 and they change back to
no color.
If F14 has information in it then the above is ignored and
you proceed F16 and vise versa.

This is where Im at now.
I modified it a little trying to make it do more or maybe
just work a little differently.
I now would like this to pause and let the user enter
last name before it jumps to the next message box. Also
can anyone see why on the second part the cell doesn't
turn red. It turns red if I take the X out of the F23 Cell.


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F14")) = 0 Then
Range("F14").Interior.ColorIndex = 3
Range("F14").Select
MsgBox ("Enter Last Name")
End If
End If
End If

If Target.Address = "$F$22" Or Target.Address
= "$F$23" Then
If UCase(Target) = "X" Then
If Len(Range("F16")) = 0 Then
Range("F16").Interior.ColorIndex = 3
Range("F16").Select
MsgBox ("Enter First Name")
End If
End If
End If
End Sub



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
IF checkbox is checked/unchecked, Cell.value = yes/no James Excel Worksheet Functions 3 October 3rd 08 06:56 PM
check box checked - then a result to show in another cell???? Lisa Ann Kashner New Users to Excel 1 November 4th 07 07:18 PM
return value in a cell if check box is checked Knox Excel Discussion (Misc queries) 2 September 14th 06 06:32 PM
Can I insert a box on excel that can be checked and un-checked? rstang66 Excel Discussion (Misc queries) 1 December 17th 05 09:56 PM
Field Required if another field is checked ** Kelly ******** Excel Programming 1 August 20th 03 10:44 PM


All times are GMT +1. The time now is 11:27 PM.

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

About Us

"It's about Microsoft Excel"