I am using Microsoft Query to guery an excel file and then get the queried
data into another excel sheet. But each time I try the same VBA code , with
the query conditions changed, for another excel it returns an error "Run-Time
error "1004" Application definition or Object definition error " when it
tries to execute ".Refresh BackgroundQuery:=False"
But when I record a new query macro specific to the new excel sheet it works
fine.