Formatting

CovMatt

New Member
Joined
Jun 30, 2017
Messages
21
Hi All

I have a 2 tab spreadsheet

Tab 1 is the front facing figures sheet for sales team
Tab 2 is the formulas used to work comms at the end of the month

Normally I copy and paste no issue

But I have mad the row sizes different so when i copy and paste now it doesn't update the cell sizes into tab 1

How can I do this please?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If I understood your request correctly, you would like to paste Row Height from tab 2 into tab 1.
In order to do that you need to select the whole row instead of a single cell. Then copy & paste it into tab 1 - this will keep the Row Height.
 
Upvote 0
If I understood your request correctly, you would like to paste Row Height from tab 2 into tab 1.
In order to do that you need to select the whole row instead of a single cell. Then copy & paste it into tab 1 - this will keep the Row Height.

Thanks in theory you are correct but when I paste the row across due to different formats in the cells i.e. centering etc. it all goes jumbled
 
Upvote 0
Ah ok. Then I think the only solution will be to use VBA and loop through rows in Sheet1 and assign their heights to Sheet2, e.g.:

Code:
Sub PasteRowHeights()
    Dim lngRow As Long


    For lngRow = [COLOR=#ff0000]1 To 10[/COLOR]
        Sheet2.Rows(lngRow).RowHeight = Sheet1.Rows(lngRow).RowHeight
    Next lngRow
End Sub

Change the number of rows (currently set to top 10) and Sheet references/names if necessary.
 
Upvote 0
Ah ok. Then I think the only solution will be to use VBA and loop through rows in Sheet1 and assign their heights to Sheet2, e.g.:

Code:
Sub PasteRowHeights()
    Dim lngRow As Long


    For lngRow = [COLOR=#ff0000]1 To 10[/COLOR]
        Sheet2.Rows(lngRow).RowHeight = Sheet1.Rows(lngRow).RowHeight
    Next lngRow
End Sub

Change the number of rows (currently set to top 10) and Sheet references/names if necessary.


Great thanks
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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