Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am wanting to set up a worksheet so a user can click a check box (or
whatever the best method would be) and copy that row to another worksheet in the workbook (or another workbook) in the next cell down each time it is checked. i.e. ()A B C 1 2 3 checking the box would copy 1 2 3 to the worksheet/workbook of choice in the next empty row. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One method.........double-click event code on any cell in the row.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target _ As Range, Cancel As Boolean) Dim rng1 As Range Dim rng2 As Range Set rng1 = Target.EntireRow Set rng2 = Worksheets("Sheet2").Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0) rng1.Copy Destination:=rng2 Cancel = True End Sub Or a macro assigned to a button. Sub copy_to_sheet() Dim rng1 As Range Dim rng2 As Range Set rng1 = ActiveCell.EntireRow Set rng2 = Worksheets("Sheet2").Cells(Rows.Count, 1).End(xlUp) _ .Offset(1, 0) rng1.Copy Destination:=rng2 End Sub Gord Dibben MS Excel MVP On Wed, 9 Dec 2009 14:33:12 -0800, Cent100 wrote: I am wanting to set up a worksheet so a user can click a check box (or whatever the best method would be) and copy that row to another worksheet in the workbook (or another workbook) in the next cell down each time it is checked. i.e. ()A B C 1 2 3 checking the box would copy 1 2 3 to the worksheet/workbook of choice in the next empty row. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy last cell with data in column E on one sheet to cell on anoth | Excel Worksheet Functions | |||
How do I copy data from main frame computer and keep data in cell | Excel Worksheet Functions | |||
Copy data in one cell to blank cell immediately below, repeat | Excel Worksheet Functions | |||
Data entry - Copy contents of cell typed in one cell to another ce | Excel Worksheet Functions | |||
How do I copy data from one cell to the next occurrence of data? | Excel Worksheet Functions |