How do assign an OUTSIDE only border style to a group of cells?

Rowena Dennis 0 Reputation points
2023-08-20T06:38:14.69+00:00

Hello!

I've used Cell Styles to create a border, but I only want the formatted border to apply to the outside of a group of cells - not the inside.

The effect is what I have created here manually - is there any way of doing it? It is for a rolling roster which is on a 3-weekly repeat so I'm wishing to create a 'look' for each week.

User's image

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2023-08-20T07:40:55.23+00:00

    For example:

    Sheet1.Range("B3:G4").BorderAround LineStyle:=XlLineStyle.xlContinuous, Weight:=XlBorderWeight.xlMedium, Color:=RGB(255, 0, 0)
    

    See:

    1 person found this answer helpful.
    0 comments No comments

  2. Tanay Prasad 2,250 Reputation points
    2023-08-22T06:12:21.53+00:00

    Hi,

    To add an outside border, click on the Borders Icon.

    Then under Draw Borders, click on Line Style and choose a color.

    Line Style under Draw Border in Excel

    You can then draw your border around whichever cells you want to.

    Best Regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.