
外枠の罫線を引くには、BorderAroundメソッドを使います。
例

たとえば、このような罫線がひかれた表の外枠に中太線を引くには次のように記述します。
Sub AroundLine() Range("B3:E9").BorderAround Weight:=xlMedium End Sub
実行結果

comments powered by Disqus
スポンサーリンク
2017年6月23日 (金) 22:47 in Excel , VBA
Sub AroundLine() Range("B3:E9").BorderAround Weight:=xlMedium End Sub
スポンサーリンク