Created
June 22, 2017 03:20
-
-
Save davefinster/1b1d9a69676fcfff8a0e58c1b9b07808 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Worksheet_Change(ByVal Target As Range) | |
Dim KeyCells As Range | |
Set KeyCells = Range("A2:A2") | |
Set OtherKeyCells = Range("C2:C2") | |
Set DateCells = Range("A5:B5") | |
If Not Application.Intersect(KeyCells, Range(Target.Address)) _ | |
Is Nothing Then | |
Set wksControl = Worksheets("Org Groups") | |
Set objList = wksControl.ListObjects("Organisation_Groups") | |
objList.Refresh | |
End If | |
If Not Application.Intersect(OtherKeyCells, Range(Target.Address)) _ | |
Is Nothing Then | |
Set wksControl = Worksheets("Dockets") | |
Set objList = wksControl.ListObjects("DocketLineItems") | |
objList.Refresh | |
End If | |
If Not Application.Intersect(DateCells, Range(Target.Address)) _ | |
Is Nothing Then | |
Set wksControl = Worksheets("Dockets") | |
Set objList = wksControl.ListObjects("DocketLineItems") | |
objList.Refresh | |
End If | |
End Sub | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment