excel 单元格边框的圆点线型

jdzmm42g  于 12个月前  发布在  其他
关注(0)|答案(2)|浏览(103)

在Excel中对单元格边框(而不是图表)使用下划线:
无法设置Borders.Linestyle属性为圆点线型(见附件照片)。使用.Linestyle = xlDot会产生较大的方形虚线,而不是较小的圆点。
我也试过将权重设置为xlThin,但这似乎没有什么区别。

avwztpqn

avwztpqn1#

尝试

.LineStyle = xlContinuous
.Weight = xlHairline
enxuqcxy

enxuqcxy2#

对于xlHairline,您可以尝试使用.Weight = xlHairline和.LineStyle = xlContinuous来获得尽可能细的线,在某些条件下可能看起来像虚线。
示例代码段:

With targetRange.Borders(xlEdgeBottom)
    .LineStyle = xlContinuous
    .Weight = xlHairline
    .Color = RGB(0, 0, 0)  ' Black
End With

相关问题