Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
Could anybody help to get the code that can copy the value of cell to clipboard in double click? I tried this but it copies the cell not the value of cell: Private Sub Worksheet_BeforeDoubleClick(ByVal _ Target As Range, Cancel As Boolean) On Error Resume Next If Target.Value < "" Then Target.Copy End If Cancel = True End Sub Your responses are highly appreciated. Yours:Lassaad |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Lassaad,
Copy copies everything, it's when you paste that decisions are made. For example, run your macro and select an empty cell and then paste special and you'll find that you can paste anything you want. So if I have understood correctly your macro already does what you require it's just the way you are pasting that must change. Mike " wrote: Hello, Could anybody help to get the code that can copy the value of cell to clipboard in double click? I tried this but it copies the cell not the value of cell: Private Sub Worksheet_BeforeDoubleClick(ByVal _ Target As Range, Cancel As Boolean) On Error Resume Next If Target.Value < "" Then Target.Copy End If Cancel = True End Sub Your responses are highly appreciated. Yours: |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On 22 mar, 12:44, Mike wrote:
Copy copies everything, it's when you paste that decisions are made. For example, run your macro and select an empty cell and then paste special and you'll find that you can paste anything you want. So if I have understood correctly your macro already does what you require it's just the way you are pasting that must change. Mike Thanks, but i want to get a macro that i could copy in double click through, a value of cell and paste it in other program. I used to copy values from excel cell by double click and highlight value than CTRL+C, but i need to fast copying of value by double click. Lassaad |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Click on graph bar to execute a double-click in a pivot table cell | Charts and Charting in Excel | |||
Double click in a Cell | Excel Discussion (Misc queries) | |||
double click a cell and add 1 to that cess | Excel Discussion (Misc queries) | |||
how to copy on double-click the cell value to Clipboard | Excel Worksheet Functions | |||
how to copy on double-click the cell value to Clipboard | New Users to Excel |