[算表] 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