Hi,
I've pasted the full code below but the part I need help with is:
How can I make each section of this run in sequence and if one "fails" it goes onto the next.
Currently I need to have it in this order for it to work. If I put this last:
Then some of the other "Calls" stops working.
I can't figure out for the life of me how to fix it.
Full Code:
I've pasted the full code below but the part I need help with is:
VBA Code:
' Hide Row - Column AQ with "Hide Row"
If Not Intersect(Target, Range("AQ:AQ")) Is Nothing And InStr(ActiveCell.Value, "Hide Row") > 0 Then
Call HideRow.HideRow
End If
' CaseLink - Confirm - Column T
If Not Intersect(Target, Range("T:T")) Is Nothing Then
Call CaseLink_Pre.CaseLink_Pre
End If
' CaseLink - Check - Column AJ
If Not Intersect(Target, Range("AJ:AJ")) Is Nothing Then
Call CaseLink_Check.CaseLink_Check
End If
' CaseLink - Confirm - Column AC
If Not Intersect(Target, Range("AC:AC")) Is Nothing Then
Call CaseLink_Confirm.CaseLink_Confirm
End If
' Create Calendar Invite - Column U Only
If Not Intersect(Target, Range("U:U")) Is Nothing Then
If InStr(ActiveCell.Value, "Create Calendar Invite") > 0 Then
Call CalendarInvite.CalendarInvite
End If
How can I make each section of this run in sequence and if one "fails" it goes onto the next.
Currently I need to have it in this order for it to work. If I put this last:
VBA Code:
' CaseLink - Confirm - Column T
If Not Intersect(Target, Range("T:T")) Is Nothing Then
Call CaseLink_Pre.CaseLink_Pre
End If
Then some of the other "Calls" stops working.
I can't figure out for the life of me how to fix it.
Full Code:
VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Check Timeout timer
checktime = True
Lastchange = Now()
' Refresh for Grey Line
If Application.CutCopyMode = False Then
Application.Calculate
End If
' Exit if more than one cell is selected
If Target.CountLarge > 1 Then Exit Sub
' Hide Row - Column AQ with "Hide Row"
If Not Intersect(Target, Range("AQ:AQ")) Is Nothing And InStr(ActiveCell.Value, "Hide Row") > 0 Then
Call HideRow.HideRow
End If
' CaseLink - PreBook - Column T
If Not Intersect(Target, Range("T:T")) Is Nothing Then
Call CaseLink_Pre.CaseLink_Pre
End If
' CaseLink - Check - Column AJ
If Not Intersect(Target, Range("AJ:AJ")) Is Nothing Then
Call CaseLink_Check.CaseLink_Check
End If
' CaseLink - Confirm - Column AC
If Not Intersect(Target, Range("AC:AC")) Is Nothing Then
Call CaseLink_Confirm.CaseLink_Confirm
End If
' Create Calendar Invite - Column U Only
If Not Intersect(Target, Range("U:U")) Is Nothing Then
If InStr(ActiveCell.Value, "Create Calendar Invite") > 0 Then
Call CalendarInvite.CalendarInvite
End If
End If
End Sub