我試圖插入一個宏,它在我的選擇中計算空白值,然後使用該計數來循環宏以插入新工作表「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