Need a Macro to Scroll to the left

  • Thread starter Thread starter Don Lowe
  • Start date Start date
D

Don Lowe

I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.
 
Don,

Try this:

Sub ScrollLeft(lngColumns As Long)
ActiveWindow.SmallScroll Toleft:=lngColumns
End Sub

and call it like this:

Sub test()
ScrollLeft (5) 'adjust this number
End Sub

hth,

Doug
 
what do you mean call it like this?

What should I put if I need to shift to the right 25 colunms?
 
Don,

If it's always 25 columns then:

Sub Scroll25Left()
ActiveWindow.SmallScroll Toleft:=25
End Sub

hth,

Doug
 
Thank you....... It worked great

Doug Glancy said:
Don,

If it's always 25 columns then:

Sub Scroll25Left()
ActiveWindow.SmallScroll Toleft:=25
End Sub

hth,

Doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top