学習帳

VBAでテキストボックス内の余白を0にする

公開:


'テキストボックスのオブジェクトが選択状態にあると仮定したコード
'(Selectionがそのオブジェクトにあたる)
Selection.ShapeRange.TextFrame.MarginLeft = 0
Selection.ShapeRange.TextFrame.MarginRight = 0
Selection.ShapeRange.TextFrame.MarginTop = 0
Selection.ShapeRange.TextFrame.MarginBottom = 0


関連記事


スポンサーリンク