Copy and transpose column into row in another sheet. Create new row when button is click

gjnn0o

New Member
Joined
Feb 26, 2020
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi, please help me out:

I want to copy and transpose data from sheet 1 into Sheet 2. In Sheet2, Name, team, Manager name, the date when the data are copied (last update). (monthly Amount will be transpose
After the data is copy into the second sheet, delete the old data from C7:C15 in sheet 1
When new name is choose at C1, button is clicked, sheet 2 will create another row to record this data in the same way as above.

Thank you very much
 

Attachments

  • excel ask.PNG
    excel ask.PNG
    54.1 KB · Views: 8

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi and welcome to MrExcel.

I guess you just want to clear the range from B7 to B18.
Try this:

VBA Code:
Sub CopyData()
  Sheets("Sheet1").Range("B1:B3, B7:B18").Copy
  Sheets("Sheet2").Range("A" & Rows.Count).End(3)(2).PasteSpecial xlPasteValues, , , True
  Sheets("Sheet1").Range("B7:B18").ClearContents
End Sub
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

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