Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can this be edited so that the Target is a range of cells rather than a column?
"Jim Thomlinson" wrote: Your description is a little thin. Here is some event code that responds to changes in column A and places a value beside the cell that was changed. Right click the sheet tab and select view code. Paste the following... Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then Select Case UCase(Target.Value) Case "A", "H", "V" Target.Offset(0, 1).Value = 8 Case Else MsgBox "Not A, H or V." End Select End If End Sub -- HTH... Jim Thomlinson "MikeG" wrote: I would like to be able to enter the letters "V", "H" or "A" into a cell and have the number 8 entered into another cell. How can this be done using Select Case? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Case without Select Case error problem | Excel Discussion (Misc queries) | |||
Select Case | Excel Discussion (Misc queries) | |||
Select Case help | Excel Programming | |||
Select case | Excel Programming |