Hi there,
I have a few Pivottables in my workbook that are linked to a DB. I am creating a macro to refresh, break the links and delete the pivot tables.
My code works but wont let the Refresh all finish, I read I need to add backgroundquery:= false but when i tried that I get an error:
ActiveWorkbook.RefreshAll BackgroundQuery:=False
Compile Error: Wrong number of arguments or invalid property assignment.
Any ideas as to what the issue is?
I have a few Pivottables in my workbook that are linked to a DB. I am creating a macro to refresh, break the links and delete the pivot tables.
My code works but wont let the Refresh all finish, I read I need to add backgroundquery:= false but when i tried that I get an error:
ActiveWorkbook.RefreshAll BackgroundQuery:=False
Compile Error: Wrong number of arguments or invalid property assignment.
Any ideas as to what the issue is?