Solved

copying text from text box..

Posted on 2004-10-02
1
158 Views
Last Modified: 2010-05-18
I have two text boxes, that have scroll bars and are multi line..  when i write text in text1, it copies it to text2.  when the scrolling starts, the text1 where i am typing starts scrolling, but text2 doesnt scroll automaticallty.. i have to scroll down to see the last thing typed.. i  want the text2 textbox also to show the last line typed.. is it possible ??  here is the simple code..

 Private Sub Text1_Change()
Text2.Text = Text1.Text


regards...
0
Comment
Question by:ganatra
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 25 total points
ID: 12206992
Try with:

Private Sub Text1_Change()
Text2.Text = Text1.Text
Text2.SelStart = len(Text2.Text)
'etcetera
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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