EXCEL如何快速添加边框

2025-03-13 08:07:04
推荐回答(5个)
回答1:

在Excel自动添加边框

回答2:

  1. 选中要添加边框的单元格;

  2. 通过开始——边框设置添加边框样式即可。

回答3:

这里输入需要选择的区域不需要按shift.

回答4:

自己录制一个宏就行了。
Sub 宏4()
'
' 宏4 宏
'

'
Range("A2:G500").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
End Sub

回答5:

在名称框中(就是公式编辑栏的左侧)输入A2:G500,回车,这时一次选中这个区域,然后右击设置单元格格式,添加边框。