Solved

Scroll bar default is top

Posted on 2014-03-13
6
215 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
  • 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now