if endif数量不匹配,当没有endif时,if必须写在同一行,exit do这个位置和loop一起是啥意思呢
Sub Macro2()
Dim A%
A = 1
Do While A < 10
If Cells(A, 1).Value = "尺寸" And Cells(A + 1, 1).Value = "" Then Cells(A + 2, 1) = "S"
If Cells(A, 1).Value = "尺寸" And Cells(A + 2, 1).Value = "" Then Cells(A + 2, 1) = "M"
If Cells(A, 1).Value = "尺寸" And Cells(A + 1, 1).Value = "温馨提示" Then
Cells(A + 1, 1) = "均码"
End If
Loop
End Sub