Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling an AutoRefresh of Scrolling in VBA

Here is my problem:

I have a spreadsheet that has 40,000 + records in it. I
have written a macro that goes through and checks each
line to see if it matches some criteria. What happens, is
while this is occur, the screen keeps scrolling with each
line as it is selected, thus resulting in what looks like
the computer is freaking out. What I need is a way to
disable the scrolling of the sheet until the program has
finished running. Also, I use multiple sheets in the
workbook, so I guess I would have to disable it for the
whoel workbook. Any ideas?

Thanks
Devin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Disabling an AutoRefresh of Scrolling in VBA

Devin,

Turn off screen updating so that your code executes
behind the scenes, then turn it back on at the end of
your code. This will also make the code run faster as
well.

Like:

Sub My_sub()
Application.ScreenUpdating = False
'your code
Application.ScreenUpdating = True
End Sub

-----Original Message-----
Here is my problem:

I have a spreadsheet that has 40,000 + records in it. I
have written a macro that goes through and checks each
line to see if it matches some criteria. What happens,

is
while this is occur, the screen keeps scrolling with

each
line as it is selected, thus resulting in what looks

like
the computer is freaking out. What I need is a way to
disable the scrolling of the sheet until the program has
finished running. Also, I use multiple sheets in the
workbook, so I guess I would have to disable it for the
whoel workbook. Any ideas?

Thanks
Devin
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conflicts with autorefresh in pivot table activating sheet protect [email protected] Excel Discussion (Misc queries) 15 November 11th 08 05:39 PM
Set autorefresh for Shared Excel Workbook Sowjanya Sunkara Excel Discussion (Misc queries) 0 April 18th 07 06:36 PM
Live Scrolling/Real-Time /Smooth Scrolling doesn't work for me in Excel 2003 [email protected] Excel Discussion (Misc queries) 0 May 12th 06 03:15 AM
Autorefresh Fails on Open STEVE Excel Discussion (Misc queries) 0 December 20th 04 10:23 PM
autorefresh display autofilter criteria question drabbacs Excel Programming 2 December 18th 03 08:28 PM


All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"