Solved

Add and move to the end of a string

Posted on 2003-12-01
2
179 Views
Last Modified: 2010-05-01
Hi,

   Maybe this is a stupid question but i have a mental cloud , The problems is:

   I have a text box with a predefined text or not, what i need is to add a text to the text box and move the cursor to the end of this text box to let the user type the rest.

   txtboz1 = "1234567"

   I want to add 8901234 if the user press the key "/" keyascii 47 and let the user put any other text at the end of this one .

  I was trying with the sendkeys command but when i send the text and the "{END}" all the text becomes selected and the cursor is not at the end of the text box.

Any idea?
Thanks a lot
0
Comment
2 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 25 total points
ID: 9850128
Is this what you want?

    Text1 = Text1 & "yOURtEXT"
    Text1.SelStart = Len(Text1)
    Text1.SetFocus
0
 
LVL 12

Author Comment

by:Alfredo Luis Torres Serrano
ID: 9850178
Yes man thanks a lot
0

Featured Post

Free Trending Threat Insights Every Day

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.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 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

22 Experts available now in Live!

Get 1:1 Help Now