2017-10-31から1日間の記事一覧

VBA FOR With VLookup

VBA

Option Explicit Private Sub kat() Application.ScreenUpdating = False 'VBAの速度を早くする Dim i With Sheets("データ追加") 'セルのシート一括指定 For i = 2 To .Cells(.Rows.Count, 1).End(xlUp).Row .Cells(i, 6) = Left(.Cells(i, 1), 4) 'A列の左…

VBA For 何行目までの処理にするかを、自動確認させる

VBA

For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row