View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default Set value for range of cells!

Hi Kim-Anh Tran ,

Try:
If Target.Row 45 And Target.Row < 55 _
And Target.Column = 20 Then
---
Regards,
Norman

"Kim-Anh Tran " wrote in
message ...
How do I change this to set target range for rows from 46:54?
I appreciate any help!
Kim-Anh

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 46 And Target.Column = 20 Then
Select Case Target.Formula
Case "x"
'allow this
Case ""
'allow this
Case Else
'reset to nothing
Target.Formula = ""
End Select
End If
End Sub


---
Message posted from http://www.ExcelForum.com/