Excel Need a way to copy and past information

CRS--

New Member
Joined
May 23, 2013
Messages
4
Hello

i am tring to make a holiday rota and i am looking for away to copy information form one sheet to the next on the click of a button and then delete the information on the first sheet will also need it to keep saving it to the next row when different data is added

i have uploaded my excel file to try explain what i mean

thank you if anyone can help

FileSwap.com : Holiday Planner.xlsx download free
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hello CRS. Place the following code into the code module for the worksheet "In Put" (not into a regular module). You will not need the "SAVE" button as the data will be copied to the other sheet automatically.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("C5,C9,C13,C17")) Is Nothing Then Exit Sub
    If Target.Address = "$C$5" Then
        Target.Copy Sheets("Annual Leave Planner").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
    ElseIf Target.Address = "$C$9" Then
        Target.Copy Sheets("Annual Leave Planner").Cells(Rows.Count, "B").End(xlUp).Offset(1, 0)
    ElseIf Target.Address = "$C$13" Then
        Target.Copy Sheets("Annual Leave Planner").Cells(Rows.Count, "C").End(xlUp).Offset(1, 0)
    ElseIf Target.Address = "$C$17" Then
        Target.Copy Sheets("Annual Leave Planner").Cells(Rows.Count, "D").End(xlUp).Offset(1, 0)
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,985
Messages
6,128,114
Members
449,422
Latest member
noor fatima

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top