View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Alex St-Pierre Alex St-Pierre is offline
external usenet poster
 
Posts: 169
Default Application.ScreenUpdating = False doesn't work

Hi,
I don't know why but the Application.ScreenUpdating=False does't work in VBA
Excel in a specific situation (lot of workbook open). I never had any problem
with this before.

Function A:
Dim bValue as boolean
bValue = Application.ScreenUpdating
Application.ScreenUpdating = False'this works
'Treatment
Application.ScreenUpdating= bValue... 'this works: the value return to True

into an other function thereafter, I have the line:
Application.ScreenUpdating = False
after the execution of this line, in the debug box:
debug.print Application.ScreenUpdating
True

When I open a new instance of Excel and open the workbook from the new
instance, it works well. Any idea?

Thank you!
Alex

--
Alex St-Pierre