トップページ(目次)

586.最終行のみ削除する

<実行前後>
 → 
Sub 最終行のみ削除する()
    
    '最終行を取得する=5
    最終行 = Cells(Rows.Count, "A").End(xlUp).Row
    
    '最終行の値のみを削除したい(行を詰めない)場合
    Rows(最終行) = ""
    
    '最終行の行ごと削除したい(行を詰める)場合はこちら
    'Rows(最終行).Delete
    
End Sub

Copyright © 2021 https://excel3000.web.fc2.com/ All Rights Reserved.
    inserted by FC2 system