Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2005

Tip: Looking for answers? Try searching our database.

how to copy on double-click the cell value to Clipboard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cyrille - 11 Feb 2005 22:13 GMT
Hello everybody,
My question is in the title... I just want to be able to automatically
copy the text content of one selected cell (selected by double-click)
into the Clipboard. Can you help me?
I tried something like the following, but it doesn't work.
Thanks in advance
Cyril

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
On Error Resume Next
     If ActiveCell.Value <> "" Then
        ActiveCell.Value.Copy
     End If
Cancel = True
End Sub
pep819 - 11 Feb 2005 23:27 GMT
Hi Cyrille,

Just double click, then click ctrl and c.  To paste the data, click ctrl and
v.  This works on almost any Windows application.

> Hello everybody,
> My question is in the title... I just want to be able to automatically
[quoted text clipped - 12 lines]
> Cancel = True
> End Sub
pep819 - 11 Feb 2005 23:29 GMT
After double clicking to access the cell contents, Click ctrl and c.  To
paste click ctrl and v.  This works in almost any Windows application.

> Hello everybody,
> My question is in the title... I just want to be able to automatically
[quoted text clipped - 12 lines]
> Cancel = True
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.