我不知道你的当前文件夹,具体指哪一个,以下代码供参考: '* +++++++++++++++++++++++++++++
'* Created By 守柔(ShouRou)@ExcelHome 2005-3-8 20:01:30
'仅测试于System: Windows NT Word: 10.0 Language: 2052
'^The Code CopyIn [用户窗体-UserForm1]^'
'* -----------------------------Private Sub UserForm_Initialize()
Dim FSO As Object, F As Object, F1 As Object, SF As Object, MyPath As String
MyPath = Options.DefaultFilePath(wdDocumentsPath) '当前文件夹
' Debug.Print MyPath
' MyPath = "E:\Personal"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set F = FSO.GetFolder(MyPath)
Set SF = F.SubFolders
For Each F1 In SF
Me.ComboBox1.AddItem F1
Next
End Sub
'---------------------- |