Solved

Scroll bar default is top

Posted on 2014-03-13
6
221 Views
Last Modified: 2014-03-13
Folks,
I have a large text box with a vertical scroll bar in a multi-line format.
When the text box opens I'd like it to open by default at the top and then scroll down, not up.
0
Comment
Question by:Frank Freese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:etech0
ID: 39927508
What do you mean by "when the text  box opens"?
Doesn't it always default to the top?
0
 

Author Comment

by:Frank Freese
ID: 39927546
I call a form that had the text box using a command button. When the form opens with the text box is there as well as the vertical scroll bar but the text box is not at the top. I've made sure that the property ScrollTop of the form set to zero.
0
 
LVL 10

Expert Comment

by:etech0
ID: 39927554
Interesting - I would have to see a sample db to diagnose it...
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:Frank Freese
ID: 39927591
OK...here the worksheet with the form
Book1.xlsm
0
 
LVL 22

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 39927769
Insert this in the userform code window

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

Open in new window

0
 

Author Closing Comment

by:Frank Freese
ID: 39927821
thanks,
you nailed it!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question