【发布时间】:2015-12-13 01:02:46
【问题描述】:
我有一个简单的 VBA 程序,它需要检查一个范围并告诉用户是否有空单元格 - 如果有,哪些单元格。
问题是这样的:
Dim outputsrange("inputnum+1:inputnum+outputnum") As range
功能:
Sub check()
' Goal: check if there are any entry truth table cells for outputs
Dim outputsrange("inputnum+1:inputnum+outputnum") As range
If IsEmpty(outputsrange) Then
MsgBox ("The following cells are empty:" & vbNewLine & emptycell) ' what's the property for these empty cells
End If
End Sub
这给出了错误:
编译错误:
类型不匹配
如何解决这种类型不匹配的问题?
【问题讨论】:
-
你的编译器会告诉你不匹配出现在哪一行吗?