Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Double Click Copy

I have a question whether a certain funcionality can be
incorporated into a spreadsheet. I have an estimate
worksheet into which I want to copy and paste a data line
from a seperate worksheet which I call the production
database. What I would like to be able to do is have both
sheets open at once, go to the database line I want to
have copied into the estimate sheet, then just doubleclick
somehwhere on that line and have it copy to the active
cell line on the estimate sheet. I can do it with a macro
button, but would really just like to be able to double
click on the line itself . Thank you.

Larry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Double Click Copy

Use the beforedoubleclick event of that worksheet

Go to the sheet tab and right click; select view code

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
if target.count 1 then exit sub
for each wkbk in Workbooks
if wkbk.Windows(1).Visible then
if wkbk.Name < thisworkbook.Name
exit for
end if
end if
Next
target.EntireRow.copy Destination:=
Wkbk.Worksheets(1).Cells(rows.count,1).End(xlup)(2 )
Cancel = True
End Sub


the above represents a basic start. You would have to modify it to suit
your needs. As written it assumes only two workbooks are open and visible,
so the one not containing the code would be the location for pasting.

--
Regards,
Tom Ogilvy


"Larry Moores" wrote in message
...
I have a question whether a certain funcionality can be
incorporated into a spreadsheet. I have an estimate
worksheet into which I want to copy and paste a data line
from a seperate worksheet which I call the production
database. What I would like to be able to do is have both
sheets open at once, go to the database line I want to
have copied into the estimate sheet, then just doubleclick
somehwhere on that line and have it copy to the active
cell line on the estimate sheet. I can do it with a macro
button, but would really just like to be able to double
click on the line itself . Thank you.

Larry



Reply
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
How to change syperlink from single click to double click syperlinker Excel Worksheet Functions 0 June 13th 08 05:01 PM
How to copy the value of cell into clipboard by double click [email protected] Excel Worksheet Functions 2 March 22nd 07 01:33 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
how to copy on double-click the cell value to Clipboard cyrille Excel Worksheet Functions 2 February 15th 05 05:56 PM
how to copy on double-click the cell value to Clipboard cyrille New Users to Excel 2 February 11th 05 11:29 PM


All times are GMT +1. The time now is 02:25 AM.

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

About Us

"It's about Microsoft Excel"