我有一个程序:
Sub a_fillValueByCells(sheet As Worksheet, v As String)
Set cellNames = produceCellNames(Row, cs)
For Each cell In cellNames
MsgBox cell
Next
End Sub
我想称之为:
Set localSheet = ActiveSheet
Dim v As String
Set v = dataSheet.Range(cellName("B", Row))
a_fillValueByCells (localSheet, v)
但是我在编辑时间的最后一行出现错误:
预期:=
如果我要删除最后一个参数:
a_fillValueByCells (localSheet)
为什么我收到错误消息,我该如何解决?谢谢