'選択物のグラデーション化(相手は必ず黒となる) Sub 縦下黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientHorizontal, 1, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=1, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 縦上黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientHorizontal, 2, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=2, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 縦内黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientHorizontal, 3, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=3, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 縦外黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientHorizontal, 4, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientHorizontal, Variant:=4, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 横右黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientVertical, 1, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientVertical, Variant:=1, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 横左黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientVertical, 2, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientVertical, Variant:=2, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 横内黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientVertical, 3, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientVertical, Variant:=3, Degree:=0.231372549019608 On Error GoTo 0 End Sub Sub 横外黒() On Error Resume Next Selection.ShapeRange.Fill.OneColorGradient msoGradientVertical, 4, 0.23 Selection.Fill.OneColorGradient Style:=msoGradientVertical, Variant:=4, Degree:=0.231372549019608 On Error GoTo 0 End Sub