DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Detect A Field Edit In Excel And Refresh A Query
Private Sub Worksheet_Change(ByVal Target As Range)
Dim wks As Worksheet
Set wks = ActiveSheet
If Target.Row = 1 And Target.Column = 1 Then
wks.QueryTables(1).Refresh
End If
Set wks = Nothing
End Sub





