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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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