Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Control Scroll bar


I am building a form in Excel using textboxes with some VB behind them.
I am new to this and I'm sure there is an easier way to build my form
but it's too late to turn around now.

I have 25 or so textboxes on the left side of the form. When I get t
textbox 22, the focus is below the viewable screen. The scroll ba
does not move with my tab order. If I tab a few more times, the focu
is returned to the textboxes on the upper right of my form.

I need to get the scroll bar to move to the bottom when I reach the en
of the screen and to the top when I go back up. Is this an Exce
setting that I am missing or can I control the scrollbar with some VB?
Thanks for your time - Mcroozer

--
mcrooze
-----------------------------------------------------------------------
mcroozer's Profile: http://www.excelforum.com/member.php...fo&userid=2987
View this thread: http://www.excelforum.com/showthread.php?threadid=49581

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Control Scroll bar


Hello Mcroozer,

Here are the macros to move the scrollbar up and down.
____________________________


Code:
--------------------
[color=blue]
Sub ScrollUp()

Dim Y As Long

Y = Application.ActiveWindow.ScrollRow
If Y 1 Then
Application.ActiveWindow.ScrollRow = Y - 1
End If

End Sub

Sub ScrollDown()

Dim Y As Long

Y = Application.ActiveWindow.ScrollRow
If Y < 65536 Then
Application,ActiveWindow.ScrollRow = Y + 1
End If

End Sub
_____________________________

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=495819

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
Scroll Bar Control Kim Excel Discussion (Misc queries) 1 December 4th 09 12:22 PM
Scroll bar (control) doesn't scroll!! ??? worksfire1 Excel Worksheet Functions 2 June 28th 07 02:18 PM
Scroll bar control doesn't scroll !! ??? worksfire1 Setting up and Configuration of Excel 0 June 27th 07 07:52 PM
Scroll bar - Control Toolbox olstrain Excel Discussion (Misc queries) 1 February 3rd 06 05:52 PM
Out of control scroll lock?? Oops Excel Discussion (Misc queries) 2 January 29th 06 10:10 PM


All times are GMT +1. The time now is 06:22 AM.

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

About Us

"It's about Microsoft Excel"