A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Try the code below, customize the name of the sheet "Sheet 2" to your needs.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Write the value into the other sheet
Sheets("Sheet 2").Range("A1").Value = Target.Value
'Cancel the event, otherwise we edit the cell aftwards
Cancel = True
End Sub
BTW, it is also possible to write the value into the same cell in the other sheet, in this case use this code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Write the value into the other sheet
Sheets("Sheet 2").Range(Target.Address).Value = Target.Value
'Cancel the event, otherwise we edit the cell aftwards
Cancel = True
End Sub
If your intention is to make a backup of cells (and restore them later), have a look into this file:
https://www.dropbox.com/s/v618dtuzfv5uik9/Backu...
Andreas.