20 VBA新手,为什么这个程序会把1到100的值返回到单元格A1:A100

【计算机】 VBA新手,为什么这个程序会把1到100的值返回到单元格A1:A100?

--------------------------------------------

傻大方资讯为您精选的网友回复(供您参考):

[软件]Sub test() Dim c As Range, i As Integer i = 1 For Each c In Range("a1:a10") c.Value = http://wenwen.sogou.com/question/i i = i + 1 NextEnd Sub循环中只是赋值给c,并没有赋值给单元格?

--------------------------------------------

20