Provide Borders to the Range

     

    Provide the Borders to the Range by using below mentioned Properties:

  • LineStyle
  • Weight
  • ColorIndex
  •  

    Click on Below mentioned image to watch video:

     

    Download The Workbook

     

    LineStyle:

  • xlcontinuous
  • xlDash
  • xldouble
  • xldot
  •  

     

    Weight:

  • xlthin
  • xlmedium
  • xlthick
  •  

    Sub Format_With_Borders()
    With Range("B5:D10").Borders

    '==========LineStyle=========
    .LineStyle = xlContinuous
    .LineStyle = xlDot
    .LineStyle = xlDash
    .LineStyle = xlDouble

    '=========Weight ===========
    .Weight = xlThin
    .Weight = xlMedium
    .Weight = xlThick

    '========ColorIndex===========
    .ColorIndex = 9

    End With
    End Sub