Solved

Mouse clicking uestion

Posted on 2001-06-10
6
123 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
Comment Utility
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
Comment Utility
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 49

Accepted Solution

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

0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Expert Comment

by:nikelsh
Comment Utility
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
Comment Utility
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
Comment Utility
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

744 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

20 Experts available now in Live!

Get 1:1 Help Now