エクセルマクロVBA サンプルコード辞書
トップページ(目次)
056.最終列(一番右の列)を取得する
<実行前後>
→
Sub 最終列を取得する() 最終列 = Cells(1, Columns.Count).End(xlToLeft).Column MsgBox 最終列 End Sub
Copyright © 2021 https://excel3000.web.fc2.com/ All Rights Reserved.