Khalid1990
New Member
- Joined
- May 25, 2019
- Messages
- 6
Hi all, Please Help Me to Put this two Worksheet_Change To one Sheet:
- First one:
Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next
If Not Intersect(Target, Range("R6:R1000000")) Is Nothing Then
Hyperlinks.Add anchor:=Target, Address:=Target.Value
End If
End Sub
- Second One:
Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Offset(0, -1).Value = "" Then
Target.Offset(0, -1).FormulaR1C1 = "=ROW()-5"
ElseIf Target.Column = 2 And Target.Offset(0, -1).IsEmpty = "TRUE" Then
End If
End Sub
Thanks>>>
- First one:
Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next
If Not Intersect(Target, Range("R6:R1000000")) Is Nothing Then
Hyperlinks.Add anchor:=Target, Address:=Target.Value
End If
End Sub
- Second One:
Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Offset(0, -1).Value = "" Then
Target.Offset(0, -1).FormulaR1C1 = "=ROW()-5"
ElseIf Target.Column = 2 And Target.Offset(0, -1).IsEmpty = "TRUE" Then
End If
End Sub
Thanks>>>