View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Snake Plissken[_2_] Snake Plissken[_2_] is offline
external usenet poster
 
Posts: 75
Default run-time error 1004

QUESTIONs:
What does "Selection.QueryTable.Refresh BackgroundQuery:=False" mean?


it causes previously set querytable (within "Raw Data" sheet) to refresh
(connection to database based on query definition, retrieving data )

What does Range(BH33) mean?


the place in sheet "Raw Data" where querytable begins

How might I fix this busted macro?



IMHO macro is not a problem in this case - maybe you cleared contents (part
of sheet area) of "Raw Data" manually so querytable is not existing anymore
in indicated range "BH33" or maybe conection ( or database statement ) to
particular database fails.
If you have a copy of this file - check it out - maybe it will work.