Hi,
currently I work on project in this step
I have many folders in this directory C:\Users\HS\Desktop\data
example folders names OUTPUT , MAIN, REPORT ....
so I have RUNNING sheet name when try to run the macro I would add sheets names after RUNNING sheet but should add allo of sheets at once (OUTPUT,MAIN,REPORT,.... so on) based on folders names , when try running the macro every time, then will delete all of sheets have already added before add again to avoid error in the macro .
this is my try, but I'm still so far for my goal.
Sub test()
Dim fld As Variant
Dim fpath As String
fpath = "C:\Users\HS\Desktop\data"
fld = Dir(fpath & "\")
Do Until fld = ""
fld = Dir
Loop
With Worksheets.Add
.Name = fld
End With
End Sub
I hope some body help.