abdelfattah
Well-known Member
- Joined
- May 3, 2019
- Messages
- 1,429
- Office Version
- 2019
- 2010
- Platform
- Windows
hello
i got this code from mr.Fluff i would thank him if is possible to add to code and make it link hyperlink every subfolder to open it
thanks
i got this code from mr.Fluff i would thank him if is possible to add to code and make it link hyperlink every subfolder to open it
VBA Code:
Sub abdelfattah()
Dim Fldr As String
Dim SubFldr As Object
Dim i As Long
i = 2
With Application.FileDialog(4)
.AllowMultiSelect = False
If .Show = -1 Then Fldr = .SelectedItems(1)
End With
With CreateObject("scripting.filesystemobject")
For Each SubFldr In .GetFolder(Fldr).SubFolders
Cells(i, 3) = SubFldr.Name
i = i + 1
Next
End With
End Sub