Solved

Mouse clicking uestion

Posted on 2001-06-10
6
130 Views
Last Modified: 2010-05-02
I have command button, which i need to select one item
in the text box by mouse clicking and moving that one item
to a second text box.

Any one have any ideas?
0
Comment
Question by:SDGEORGEC
6 Comments
 
LVL 2

Expert Comment

by:Microsoft
ID: 6174675
if you have a command button and you want to transfer the details from text box 1 to text box 2 then follow this code below,

private sub command_click()

text2=text1

end sub

im still not sure thats what you want



0
 
LVL 2

Expert Comment

by:Microsoft
ID: 6174680
or do you mean you have a listbox and you want to beable to click on that item and make it appear in a second text box?
0
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 50 total points
ID: 6175495
Hi SDGEORGEC, text2=text1.seltext?

0
Independent Software Vendors: 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!

 
LVL 1

Expert Comment

by:nikelsh
ID: 6175736
hi, SDGEORGEC

as per i understood u have two text box and command button
in between that and wanted selected item goes on click to the second textbox. A seggesation why do'nt u use insted of text box listbox.

and use this code for transfering data from one listbox to another
 
Private Sub List1_Click(Index As Integer)
Select Case Index
    Case 0
       tem = List1(0).Text
    Case 1

End Select
End Sub

Private Sub Command1_Click()
On Error GoTo handler:
 
      If tem = "" Then Exit Sub
         List1(1).AddItem tem
exit sub
handler:
End Sub
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7135848
Hi SDGEORGEC,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept ryancys's comment(s) as an answer.

SDGEORGEC, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7168356
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 55
VB6 - Compare and highlight cell not the same 3 56
Excel Automation VBA 19 102
VBA - If Bookmark = "XXBOOKMARKXX" then 15 50
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

713 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