【发布时间】:2016-10-06 11:47:04
【问题描述】:
我下面的代码检查列 S 和 T 单元格是否为空。如果单元格为空,则会在 U 列中显示一个文本,说明它不能为空。 我的问题是单元格一次可以接收一个字符串,我正在寻找一种将字符串连接到单个单元格中的方法。请帮忙。谢谢。
我的代码:
For pos2 = 1 To .UsedRange.Rows.Count + 1 Step 1
If (IsEmpty(.Cells(pos2, "S").Value) = True) Then
.Cells(pos2, "U").Value = "Description can't be blank"
End If
If (IsEmpty(.Cells(pos2, "T").Value) = True) Then
.Cells(pos2, "U").Value = "Criteria can't be blank"
End If
Next pos2
【问题讨论】: