vb怎么写for循环语句

2024-11-08 20:56:14
推荐回答(1个)
回答1:

for…next循环如下:(在C盘根目录建立一个名字为1的文件夹,反复10次)Private Sub Command2_Click()
Dim i As Integer
For i = 1 To 10
Set fso = CreateObject("Scripting.filesystemobject")
fso.CreateFolder ("c:\1")
Next
End Sub