后面的IF语句不运行,直接跳过,是怎么回事
Application.ScreenUpdating=False'取消提示Application.DisplayAlerts=False'取消警告Forj=7To200'...
Application.ScreenUpdating = False '取消提示
Application.DisplayAlerts = False '取消警告
For j = 7 To 200 '范围4-200行
If Cells(j, "b") = "." Then End
If Cells(j, "b") = "" Then Range(Cells(j, "b"), Cells(j - 1, "b")).MergeCells = True '如果j 行c列范围内发现为空那么
'在j 行c列范围内,沿C列往上合并
Next j
Sheets("负荷计算书").Select '
For u = 7 To 200 '范围4-200行
If Cells(u, "c") = "." Then End
If Cells(u, "c") = "" Then Range(Cells(u, "c"), Cells(u - 1, "c")).MergeCells = True '如果j 行c列范围内发现为空那么
'在j 行c列范围内,沿C列往上合并
Next u 展开
Application.DisplayAlerts = False '取消警告
For j = 7 To 200 '范围4-200行
If Cells(j, "b") = "." Then End
If Cells(j, "b") = "" Then Range(Cells(j, "b"), Cells(j - 1, "b")).MergeCells = True '如果j 行c列范围内发现为空那么
'在j 行c列范围内,沿C列往上合并
Next j
Sheets("负荷计算书").Select '
For u = 7 To 200 '范围4-200行
If Cells(u, "c") = "." Then End
If Cells(u, "c") = "" Then Range(Cells(u, "c"), Cells(u - 1, "c")).MergeCells = True '如果j 行c列范围内发现为空那么
'在j 行c列范围内,沿C列往上合并
Next u 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询