Created
October 24, 2017 15:07
-
-
Save Lycheejam/973fd4584097ac35f411ff863ef9893f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'************************ | |
'**CelleLine設定(水平罫線) | |
'************************ | |
' LineSw(罫線設定先シート&範囲, 罫線種類) | |
Sub LineSw(ByRef targetRange, ByRef colorCase As boolean) | |
If LineCase = True Then 'true=点線 false=実線 | |
With targetRange.Borders(xlEdgeTop) 'セルの上を指定 | |
.LineStyle = xlDot '点線 | |
.ColorIndex = xlAutomatic | |
.TintAndShade = 0 | |
.Weight = xlThin | |
End With | |
Else | |
With targetRange.Borders(xlEdgeTop) | |
.LineStyle = xlContinuous '実線 | |
.ColorIndex = xlAutomatic | |
.TintAndShade = 0 | |
.Weight = xlThin | |
End With | |
End If | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment