headings in copy and paste

RoseChapman

New Member
Joined
Jun 12, 2018
Messages
40
Hello


I am trying to copy what I have in column H of Sheet 1 and paste the same column in columns B and D of sheet 2. The problem I am having is that I am also copying the headings from sheet 1 in sheet 2 and I do not want that, I do not know how to avoid the headings, could you please help?

Worksheets("sheet1").Range("H:H").Copy


Worksheets("sheet2").Range("B:B, D;D").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False

Thanks
Rose
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try this
Change the 2 to the row where your data begins.

Code:
Sheets("sheet1").Range("H[COLOR=#ff0000]2[/COLOR]:H" & Sheets("sheet1").Range("H" & Rows.Count).End(xlUp).Row).Copy
Sheets("sheet2").Range("B[COLOR=#ff0000]2[/COLOR], D[COLOR=#ff0000]2[/COLOR]").PasteSpecial Paste:=xlPasteValues
 
Upvote 0
How about
Code:
Worksheets("sheet1").Range("H2:H" & Rows.Count).Copy


Worksheets("sheet2").Range("B2, D2").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,432
Members
448,961
Latest member
nzskater

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