gtejas
Technical User
- Oct 3, 2007
- 5
Looking for help with the following:
Sub ListQueryTableProperties()
Dim ws As Worksheet, P As propterty
Dim wsQry As QueryTable
Set ws = Worksheets("Sheet4")
Set wsQry = ws.QueryTables(1)
For Each P In wsQry.Properties
Debug.Print P.Name; Tab; P.Value
Next P
Exit1:
If Not wsQry Is Nothing Then
Set wsQry = Nothing
End If
If Not ws Is Nothing Then
Set ws = Nothing
End If
End Sub
Sub ListQueryTableProperties()
Dim ws As Worksheet, P As propterty
Dim wsQry As QueryTable
Set ws = Worksheets("Sheet4")
Set wsQry = ws.QueryTables(1)
For Each P In wsQry.Properties
Debug.Print P.Name; Tab; P.Value
Next P
Exit1:
If Not wsQry Is Nothing Then
Set wsQry = Nothing
End If
If Not ws Is Nothing Then
Set ws = Nothing
End If
End Sub