Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Scroll bar starting at bottom of form
Hi, I'm building a user form via VB script, and the final section of the script sets the scrollheight of the form depending on how many textboxes etc. have been added by the code. However, whenever the form is shown the scroll bar starts at the very bottom. I have tried the line UserForm.ScrollTop = 0 However this only seems to nudge it up about 6 points (on average the scrollheight of the form is about 2000 points). Any help on what I need to do to start the viewable form at the top would be greatly appreciated. Thanks in advance, Adam -- Adamaths ------------------------------------------------------------------------ Adamaths's Profile: http://www.excelforum.com/member.php...o&userid=31580 View this thread: http://www.excelforum.com/showthread...hreadid=517368 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Scroll bar starting at bottom of form
Is the control with the TabIndex zero at the top of the form?
-- Regards, Tom Ogilvy "Adamaths" wrote in message ... Hi, I'm building a user form via VB script, and the final section of the script sets the scrollheight of the form depending on how many textboxes etc. have been added by the code. However, whenever the form is shown the scroll bar starts at the very bottom. I have tried the line UserForm.ScrollTop = 0 However this only seems to nudge it up about 6 points (on average the scrollheight of the form is about 2000 points). Any help on what I need to do to start the viewable form at the top would be greatly appreciated. Thanks in advance, Adam -- Adamaths ------------------------------------------------------------------------ Adamaths's Profile: http://www.excelforum.com/member.php...o&userid=31580 View this thread: http://www.excelforum.com/showthread...hreadid=517368 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Scroll bar starting at bottom of form
That's sorted it. Many thanks! Adam -- Adamaths ------------------------------------------------------------------------ Adamaths's Profile: http://www.excelforum.com/member.php...o&userid=31580 View this thread: http://www.excelforum.com/showthread...hreadid=517368 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Restore bottom scroll bar (Excel 2007) | Excel Discussion (Misc queries) | |||
Change scroll bar to end at end of text not bottom of worksheet?? | Excel Discussion (Misc queries) | |||
Scrollbars starting at the bottom of form | Excel Discussion (Misc queries) | |||
How do I get bottom scroll bar back in Excel? | Setting up and Configuration of Excel | |||
How to get rid of the bottom scroll bar in a ListBox | Excel Programming |