LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 698
Default BeforeDoubleClick code

Try either of these.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
With ActiveCell
.Copy Range("A1")
.Offset(1, 1).Copy Range("A2")
End With
End Sub

or

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
ActiveCell.Copy Range("A1")
ActiveCell.Offset(1, 1).Copy Range("A2")
End Sub

HTH
Regards,
Howard

"Ronbo" wrote in message
...
I would like to put a routine on the worksheet tab using
"BeforeDoubleClick"
that would put the contents of the cell clicked on in A1 and the contents
of
the cell (OFFSET 1,1) in cell A2.

Thanks,

Ronbo



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Referring to BeforeDoubleClick art Excel Programming 6 October 13th 08 03:46 AM
Help With BeforeDoubleClick jean Excel Programming 3 March 19th 08 07:02 PM
BeforeDoubleClick Stefi Excel Programming 7 December 20th 07 10:13 AM
beforedoubleclick and selectionchange clara Excel Programming 0 April 24th 07 06:52 PM
BeforeDoubleClick doesn't seem to work Dan Excel Programming 7 March 13th 07 03:22 AM


All times are GMT +1. The time now is 04:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"