Solved

Copy & Paste Buttons

Posted on 2000-05-01
2
209 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…
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…

895 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

13 Experts available now in Live!

Get 1:1 Help Now