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

Hello:
I would appreciate help with the following.

I have created an user form with text box that contains about 3
paragraphs of text. I have set the scrollbar property to show vertical
scroll bars.

When I open the form, the scroll bar position is at the bottom i.e the
last line of text is displayed in the text box. What can I do so that
the scroll bar always starts at the top and the first line of text is
displayed whenever the form is opened?

TIA

Vinay
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Text box Scroll bar position

Try something like:

TextBox1.SelStart = 0

--
Jim Rech
Excel MVP
"Vinay" wrote in message
om...
| Hello:
| I would appreciate help with the following.
|
| I have created an user form with text box that contains about 3
| paragraphs of text. I have set the scrollbar property to show vertical
| scroll bars.
|
| When I open the form, the scroll bar position is at the bottom i.e the
| last line of text is displayed in the text box. What can I do so that
| the scroll bar always starts at the top and the first line of text is
| displayed whenever the form is opened?
|
| TIA
|
| Vinay


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Text box Scroll bar position

Vinay,

This should work:

Private Sub UserForm_Initialize()
Me.TextBox1.SelStart = 0
End Sub

hth,

Doug

"Vinay" wrote in message
om...
Hello:
I would appreciate help with the following.

I have created an user form with text box that contains about 3
paragraphs of text. I have set the scrollbar property to show vertical
scroll bars.

When I open the form, the scroll bar position is at the bottom i.e the
last line of text is displayed in the text box. What can I do so that
the scroll bar always starts at the top and the first line of text is
displayed whenever the form is opened?

TIA

Vinay



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
text position on a chart Chris Excel Discussion (Misc queries) 1 January 29th 07 01:45 PM
Chart text position Chris Excel Discussion (Misc queries) 1 January 27th 07 02:39 AM
Setting All Worksheets To The Same Scroll Position wormdazzler Excel Worksheet Functions 2 July 20th 05 10:40 PM
Vertical Scroll bar position in Text box Maria[_6_] Excel Programming 1 December 4th 03 01:21 AM
control scroll position GUS Excel Programming 1 August 21st 03 10:07 PM


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