Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd like to force (or at least encourage) entry in a cell in column B if the
user enters data in the same row cell of column A. For instance, if they input "Add class" in cell A1, they must input data in B1. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Donna,
Right click your sheet tab, view code and paste the code below in. If the user enters the string Add Class in any cell in column A they get a message Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub If Not Intersect(Target, Range("A:A")) Is Nothing Then Application.EnableEvents = False If UCase(Target.Value) = "ADD CLASS" Then Target.Offset(, 1).Select MsgBox "Please enter data into B" & Target.Row Application.EnableEvents = True End If End If End Sub Mike "Donna" wrote: I'd like to force (or at least encourage) entry in a cell in column B if the user enters data in the same row cell of column A. For instance, if they input "Add class" in cell A1, they must input data in B1. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell reads "Value" without an entry | Excel Worksheet Functions | |||
Formula to confirm entry in Col "C" is valid for data in Col "A" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Can you assign an "order" for cell entry? | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |