Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Need a Macro to Scroll to the left

I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Need a Macro to Scroll to the left

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

"Don Lowe" wrote in message
...
I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Need a Macro to Scroll to the left

what do you mean call it like this?

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

"Doug Glancy" wrote:

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

"Don Lowe" wrote in message
...
I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Need a Macro to Scroll to the left

Don,

If it's always 25 columns then:

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

hth,

Doug

"Don Lowe" wrote in message
...
what do you mean call it like this?

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

"Doug Glancy" wrote:

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

"Don Lowe" wrote in message
...
I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Need a Macro to Scroll to the left

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

"Doug Glancy" wrote:

Don,

If it's always 25 columns then:

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

hth,

Doug

"Don Lowe" wrote in message
...
what do you mean call it like this?

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

"Doug Glancy" wrote:

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

"Don Lowe" wrote in message
...
I need a Macro to scroll to the left a specifc amount of colunms without
changing the row I am on.






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
My scroll wheel, scrolls right to left, not up and down? lbbss Excel Discussion (Misc queries) 1 January 22nd 08 02:57 PM
How do I change mouse scroll from left and right to up and down? tom New Users to Excel 0 July 4th 06 02:59 PM
Scroll two columns on right while left is stationary widman Excel Discussion (Misc queries) 2 September 28th 05 04:59 PM
Scroll to the right or left James Martin[_2_] Excel Programming 1 August 25th 05 08:52 PM
Mouse scroll jumps from up/down to left/right Chris Excel Discussion (Misc queries) 0 April 15th 05 05:48 AM


All times are GMT +1. The time now is 02: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"