Custom Borders for a group of cells

AlanaT

New Member
Joined
Feb 20, 2019
Messages
6
Using Excel 2010... can you create a custom border that affects a group of cells, i.e. cells C3:E6, all inside borders in cell group have standard line borders, and the outer borders (surrounding the group of cells) are thick outside borders. I do this all the time and would like a one-step/one-click solution.
See below picture.
Capture.PNG
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
How about
VBA Code:
Sub AlanaT()
   With Range("C3:E6")
      .Borders.Weight = xlThin
      .BorderAround , xlMedium
   End With
End Sub
 
Upvote 0
This cell range was only an example... wouldn't using that VBA code only border those specific cells. I would like to have the custom border for whatever range of cells I select.
Does that make sense?
 
Upvote 0
In that case you can use
VBA Code:
Sub AlanaT()
   With Selection
      .Borders.Weight = xlThin
      .BorderAround , xlMedium
   End With
End Sub
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,666
Members
448,977
Latest member
moonlight6

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