Solved

Copy & Paste Buttons

Posted on 2000-05-01
2
208 Views
Last Modified: 2010-05-02
Hi All,

All I want to know is how do I, using a Command Button, Enable data from one of my Text Boxes to be copyed just like the Toolbar option in MS Word for example and also how do I do the same with Paste ???
0
Comment
Question by:jasinski
2 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 10 total points
ID: 2768292
'to copy

Private Sub Command1_Click()
    Clipboard.SetText Text1.Text
End Sub


'to paste

Private Sub Command1_Click()
    Text1.Text = Clipboard.GetText
End Sub
0
 

Author Comment

by:jasinski
ID: 2768775
Another great answer !
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

706 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

17 Experts available now in Live!

Get 1:1 Help Now