[算表] excel vba多個 for...next

作者: home0303 (Blue night)   2015-04-09 14:42:27
軟體:excel
版本:2010
for i = 1 to 100
for x = 1 to 10
for y = 1 to 10
cells(x,y) = i
next ???
請問要怎麼寫這樣的VBA
把A1到J10填滿1到100
謝謝
作者: soyoso (我是耀宗)   2015-04-09 14:46:00
可不用原文中最外圈的迴圈,而是另設一個變數來累加http://goo.gl/1dX0bB
作者: home0303 (Blue night)   2015-04-09 15:38:00
了解了 謝謝

Links booklink

Contact Us: admin [ a t ] ucptt.com