Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
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
Restore bottom scroll bar (Excel 2007) Redjagmike Excel Discussion (Misc queries) 4 May 23rd 07 05:56 PM
Change scroll bar to end at end of text not bottom of worksheet?? Garfield Excel Discussion (Misc queries) 2 June 5th 06 11:52 PM
Scrollbars starting at the bottom of form cparsons Excel Discussion (Misc queries) 0 July 31st 05 01:54 AM
How do I get bottom scroll bar back in Excel? Didea Setting up and Configuration of Excel 1 May 4th 05 02:33 PM
How to get rid of the bottom scroll bar in a ListBox Valeria[_2_] Excel Programming 2 January 23rd 04 12:48 PM


All times are GMT +1. The time now is 03:28 PM.

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"