Copy to clipboard not working

Asrampd

Board Regular
Joined
Feb 26, 2012
Messages
247
Hi,

The intention is to double click on any part of a Row (E.G. Row "E") and to copy to the clipboard the contents of the first cell (E.G. "E1") and then release the highlight -whilst retaining the clipboard content for use in another application.


What am I doing wrong - It copies the 1st time, it gets the cell hit, it then does not work but edits the cell.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range)
'/force active cell to be the first in the row
Range("A" & Target.Row, "E" & Target.Row).Select
Target.Copy
Application.CutCopyMode = False
End Sub

Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
'/force active cell to be the first in the row
Range("A" & Target.Row, "E" & Target.Row).Copy
End Sub
 
Upvote 0
You can use Application.CutCopyMode=False but only after you have pasted the data somewhere.
 
Upvote 0
The Idea is to put the contents of the selected cell into the Windows Clipboard, then clear the screen for the next selection.

Meanwhile - or when ready, the user goes to a third party software and pastes in the copied instruction (a Typical phrase would be "S1(D,N,!<>2.5E") to an input field.

Ta.
 
Upvote 0

Forum statistics

Threads
1,203,026
Messages
6,053,116
Members
444,640
Latest member
Dramonzo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top