Excelの列、行の値のクリア

列、または、行を指定して、値をクリアする方法です。列削除・行削除ではありません。
列を指定してクリアする場合は、

ActiveSheet.Range(“C:D”).Clear

行を指定してクリアする場合は、

ActiveSheet.Range(“4:5″).Clear

という形で指定します。 上記の形式では、値・書式ともに削除されます。

値のみ削除したい場合は、 .ClearContentsとなります。

VBAのお勉強 まとめへ戻る

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 simple blog いろいろ勉強中 Suffusion theme by Sayontan Sinha