Row heights with copy command

kckay

Board Regular
Joined
Nov 8, 2010
Messages
134
I am copying a block of rows to another area of my worksheet.

The code does not carry the Source_Range as formatted (row heights) and re-format the Dest_Range. This leaves the Dest_Range row heights as the rows are defined in the workbook rather than how the Source_Range is formatted for row_height.

How can I carry the row heights as defined in Source_Range to Dest_Range?

Code:
.
.
For n = 2 To Number_Of_Rows
 
Set Dest_Range = Sheets("Sources").Range(Row_start, Row_end)
 
Source_Range.Copy Dest_Range
.
.
.
Next n
[\code]
 
Last edited:
Well in that case. I don't like it ;)
I'll stick with the loop I guess.
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,557
Messages
6,179,508
Members
452,918
Latest member
Davion615

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