automated scrolling

macro_panic

New Member
Joined
Mar 17, 2002
Messages
47
is there a way of slowly and smoothly scrolling down the screen in a macro please? i want to put some code in my auto_open macro which initially displays cell A1 at the top left of the screen for a couple of seconds then smoothly scrolls down to displaying A30 at the top left. any ideas? (hope this is clear)

as you can probably tell, i am already in an august bank holiday mood...

thanks in advance
m_p
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
The easiest way to do it would be to
use a scrolling wheel on a mouse during
the Macro recording.

Leastways that's what I do.

HTH

DaveA
 
Upvote 0
good point, but that would scroll in increments of one cell height and i was really looking for a smoother scroll - like a nice bit of flash!!!
 
Upvote 0
OK OK.

Try using
Application.screenupdating = False

and

Application.Screenupdating = True

Between the scroll.

Whilst this won't give you a smooth scroll it will just give one jump. Also if you bind the whole macro it should speed up the running.

Apologies if It's preaching and converted.

DaveA

:wink:
 
Upvote 0
Excel will scroll no less than one cell at a time. The only way I know to "smooth" it out would be to choose many rows, change the row height to a small valueof about 1 pixel or .75, use the smallscroll method.
Ex.
<pre>
Sub ScrollNow()
For x = 1 To 2000
ActiveWindow.SmallScroll Down:=1
Next
End Sub

</pre>
Merge cells to display text large enough to view. I'll mail you an example book.
Tom
 
Upvote 0

Forum statistics

Threads
1,224,387
Messages
6,178,294
Members
452,838
Latest member
TGirl66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top