如何通过函数,把简单引用,变成公司名称条件应用,达到如图效果 ...
=INDIRECT(B4&"!C3") =INDIRECT(B5&"!C3") Sub i()
Dim i, ar(1 To 65536, 1 To 3)
Sheets("汇总表"). = ""
For i = 1 To Sheets.Count
If Sheets(i).Name <> "汇总表" Then
k = k + 1
ar(k, 1) = k
ar(k, 2) = Sheets(i).Name
ar(k, 3) = Sheets(i).
End If
Next
Sheets("汇总表")..Resize(k, 3) = ar
End Sub 搞定,谢谢两位大神
页:
[1]