armchairandy
Board Regular
- Joined
- Mar 27, 2012
- Messages
- 53
Not sure if this is possible.. but
I already have a change event in a work sheet - works as I want it to
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("G17:G205")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Dim iCol As Integer
Range("Y3").Activate
For iCol = 0 To 100
If ActiveCell.Offset(0, iCol).Value = Range("B1").Value Then
ActiveCell.Offset(1, iCol).Value = Range("H14").Value
Exit For
End If
If iCol = 100 Then
'MsgBox "This Metric is not due to Start yet!"
End If
Next iCol
End If
End Sub
Kindly donated by WaterGypsy
I have a drop-box with two options in another cell on the same worksheet, where one option would runs macro, the other option does nothing.
How can I enter both in the Change by value section? I do not want both codes running if only one range changes. Alternatively is there a mechanism where I can run the drop-box option separately.
Any help appreciated
Andrew
I already have a change event in a work sheet - works as I want it to
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("G17:G205")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Dim iCol As Integer
Range("Y3").Activate
For iCol = 0 To 100
If ActiveCell.Offset(0, iCol).Value = Range("B1").Value Then
ActiveCell.Offset(1, iCol).Value = Range("H14").Value
Exit For
End If
If iCol = 100 Then
'MsgBox "This Metric is not due to Start yet!"
End If
Next iCol
End If
End Sub
Kindly donated by WaterGypsy
I have a drop-box with two options in another cell on the same worksheet, where one option would runs macro, the other option does nothing.
How can I enter both in the Change by value section? I do not want both codes running if only one range changes. Alternatively is there a mechanism where I can run the drop-box option separately.
Any help appreciated
Andrew