我试图插入一个宏,它在我的选择中计算空白值,然后使用该计数来循环宏以插入新工作表“mycount”次数。我如何做第二个循环部分?谢谢VBA循环函数n次
'cnt blank cells in col U
Dim mycount As Long
mycount = Application.WorksheetFunction.CountBlank(Selection)
‘add sheets for number of mycount
Dim looper as integer
Looper=mycount
Do while looper <=mycount
Sheets.add after:=ActiveSheet
Loop
有在若干变化[文档](http://stackoverflow.com/documentation/vba/1873/flow-control-结构#吨= 201608231550302751355)。 – Comintern