BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
Greetings,
I need help clearing cell (B4) when the value in B2 Changes.
I'm Stumped. . .
I need help clearing cell (B4) when the value in B2 Changes.
I'm Stumped. . .
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Not Intersect(Target, Range("B2:B3")) Is Nothing Then
Range("B4:H4").ClearContents
End If
End Sub
you mean the list from Data Validation, then we will declare global variable “Before", & what you need will be done if you " Deactivet " & then " Activate“ the sheet where you make your selections.when a different selection was made from the drop down list
Option Explicit
Public Before
Private Sub Worksheet_Activate()
Before = Range("B2").Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("B2") And Target <> Before Then Range("B4") = ""
End Sub