Excel VBA如何实现多个工作表的选择性粘贴数值
Submacro3()DimiAsRangeForEachiInSheet1.UsedRange.SpecialCells(xlCellTypeFormulas,23)I...
Sub macro3()Dim i As RangeFor Each i In Sheet1.UsedRange.SpecialCells(xlCellTypeFormulas, 23)If i.Formula Like "*" Then i = i + 1Next iEnd Sub这只是在sheet1中进行,怎么改让其在所有工作表中进行?
展开
1个回答
推荐于2016-11-27 · 知道合伙人软件行家
关注
展开全部
Sub macro3()
Dim i As Range
For sh = 1 To Sheets.Count
For Each i In Sheets(sh).UsedRange.SpecialCells(xlCellTypeFormulas, 23)
If i.Formula Like "*" Then i = i + 1
Next
Next
End Sub
试试这个
Dim i As Range
For sh = 1 To Sheets.Count
For Each i In Sheets(sh).UsedRange.SpecialCells(xlCellTypeFormulas, 23)
If i.Formula Like "*" Then i = i + 1
Next
Next
End Sub
试试这个
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询