0
ループを使ってExcelのマクロを書き、2列の日付を比較し、Excelの日付を比較し、日付が同じ場合は別の列の値を置き換えようとしています。while loop in excel
これは私のExcelコードです。誰かがそれに間違っていると教えてもらえますか?ループなしでエラーが発生し続けます。
Sub automatic_replace_using_do_while_loop()
Dim A As Integer, H As Integer
A = 1
H = 1
Do While H < 1186
If Cells(A, 1).Value = Cells(H, 8).Value Then
Cells(H, 6).Value = Cells(i, 11)
H = H + 1
A = A + 1
Else
H = H + 1
Loop
End Sub
ありがとうございます!
ありがとうございます!それを私が直した ! – urpi