說我想要做的Excel的SS像這樣的第一行:Excel 2003中 - VBA通過每一個細胞都在一行中提供的屬性循環/格式化
.Rows("1:1").Select
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
只是我想每個人的細胞有輪廓,不是全部選擇。我怎麼能說第1行的每個單元格,做上述想法
謝謝!
非常感謝! – Justin 2010-04-05 20:54:18