How do I make the bottom row merge + with colour?

nonono

Board Regular
Joined
Jul 25, 2018
Messages
59
I want to make the cell in (Before) A191:F191 merge like the (After) A207:F207 and making H191 look like H207
BkcIwbT.png


Color properties in H207 is
PxJlHat.png
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Do you want a VBA solution ?
Also, avoid merging cells at any cost !....it will cause so many issues especially if using VBA !
 
Upvote 0
Try something like this

Code:
Sub MM1()
Dim lr As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
Range("A" & lr + 1).Value = "Average"
Range("A" & lr + 1 & ":G" & lr + 1).HorizontalAlignment = xlCenterAcrossSelection
Range("H" & lr + 1).Value = Range("H" & lr).Value
With Range("A" & lr + 1 & ":H" & lr + 1).Font
        .FontStyle = "Bold"
        .Size = 11
End With
With Range("A" & lr + 1 & ":H" & lr + 1).Interior
        .ThemeColor = xlThemeColorAccent6
        .TintAndShade = 0.599963377788629
        .PatternTintAndShade = 0
End With
End Sub
 
Upvote 0
oh boi it work like a charm . Thank you sir for your time... am appreviate your help alotttttttttttttttttttttttttttttttttttttttttttttt
:biggrin:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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