DanielFran
New Member
- Joined
- Apr 19, 2018
- Messages
- 35
Hi,
I am trying to refresh a querytable using vba and the vba code i am using is the following:
Sub RefreshEmployee()
'
'
Sheets("Employee info").Range("A1").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
But I get an run-time error 91 (object variable or with block variable not set)
Not sure where I am going wrong
KR,
Dan
I am trying to refresh a querytable using vba and the vba code i am using is the following:
Sub RefreshEmployee()
'
'
Sheets("Employee info").Range("A1").ListObject.QueryTable.Refresh BackgroundQuery:=False
End Sub
But I get an run-time error 91 (object variable or with block variable not set)
Not sure where I am going wrong
KR,
Dan