Hi everyone,
I have an excel workbook with 2 powerquery queries that produce 2 tables named "success" and "Fail".
I have 2 buttons which associated codes are
Private Sub Fail_Refresh_Click()
Application.Range("Fail").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
Private Sub Success_Refresh_Click()
Application.Range("success").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
Clicking on success works, clicking on fail returns "Error 91: Object Variable or With Block Variable Not Set"
Any idea what I should check ?
Thank you
Ph.Drouhin
Office 365
I have an excel workbook with 2 powerquery queries that produce 2 tables named "success" and "Fail".
I have 2 buttons which associated codes are
Private Sub Fail_Refresh_Click()
Application.Range("Fail").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
Private Sub Success_Refresh_Click()
Application.Range("success").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
Clicking on success works, clicking on fail returns "Error 91: Object Variable or With Block Variable Not Set"
Any idea what I should check ?
Thank you
Ph.Drouhin
Office 365