View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default macro to disable auto refresh

Turn on the macro recorder and do it manually to one of your queries.

then turn off the macro recorder and look at the code recorded.

--
Regards,
Tom Ogilvy


"Patrick Bateman" wrote:

sorry i'm looking to disable the automatic refresh on a database query i have
in my sheet

"ddiicc" wrote:


Application.ScreenUpdating = False
Application.Calculation = xlCalculationAutomatic

This is stop screen updating while running macro and will actually speed up
the macro by 80%. If you want screen updating, just change the FALSE to TRUE

"Patrick Bateman" wrote:

hi

is it possible to run a macro to disable/enable the automatic refresh on all
queries in a workbook?

thankyou