Sub test002(folder As String)
anyfsubfolder = Dir(folder, vbDirectory)
Do
Select Case anyfsubfolder
Case ""
Exit Do
Case "."
Case ".."
Case Else
If GetAttr(folder & anyfsubfolder) And vbDirectory Then
Call test002(folder & anyfsubfolder & "\")
End If
End Select
anyfsubfolder = Dir ‘《《-----在这个地方出错
Loop
End Sub
从子文件夹中返回上层文件夹中的时候,出错
缥缈止盈
RISEBY
慕妹3146593
相关分类