VBA实现EXCEL多表格多条件查询

需积分: 31 82 下载量 71 浏览量 更新于2023-03-16 7 收藏 156KB DOC 举报
VBA实现EXCEL多表格多条件查询 For i = 1 To Workbooks.Count For Each c In Sheets(i).UsedRange If c.Value >= 150 And c.Value <= 160 Then c1 = c1 + c.Value n = n + 1 End If ‘更多条件…… Next Next