Border around each cell in a range

前端 未结 7 1851
你的背包
你的背包 2020-12-14 00:38

I am trying to create a simple function that will add borders around every cell in a certain range. Using the wonderful recording this generates a ton of code which is quite

相关标签:
7条回答
  • 2020-12-14 01:05

    You can also include this task within another macro, without opening a new one:

    I don't put Sub and end Sub, because the macro contains much longer code, as per picture below

    With Sheets("1_PL").Range("EF1631:JJ1897")
        With .Borders
        .LineStyle = xlContinuous
        .Color = vbBlack
        .Weight = xlThin
        End With
    [![enter image description here][1]][1]End With
    
    0 讨论(0)
提交回复
热议问题