|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 zxsea_7426 于 2022-12-20 19:48 编辑
供参考,看看是否这个效果:
Sub 减10()
[j35] = [j35] - [O3]
[p3] = [p3] + 1
For i = 18 To 33
If Cells(i, "j") = "" Then
Cells(i, 2) = ""
Cells(i, 3) = ""
End If
Next i
For i = 18 To 33
If Cells(i, 2) = "" Then
Cells(i, 2).Formula = "=C1+D1"
Exit For
End If
Next i
For i = 18 To 33
If Cells(i, 3) = "" Then
Cells(i, 3).Formula = "=C1+D1+R3+2"
Exit For
End If
Next i
Range("B18:C33") = Range("B18:C33").Value
End Sub
|
评分
-
1
查看全部评分
-
|