excelvbaformatborderlinestyle

EXCEL: Round Dot LineStyle for Cell Border


Using VBA in excel for a Cell Border (not a chart):

Cannot set the Borders.Linestyle property to have the round dot linestyle (see attached photo). Using .Linestyle = xlDot results in the larger, square dashes rather than the smaller round dots.

I've also tried setting weight to xlThin but this does not seem to make a difference.

enter image description here


Solution

  • Try

    .LineStyle = xlContinuous
    .Weight = xlHairline