I'm creating a script that needs to create for each value in a list a new folder on the same location where the Excel with the list of values is saved.
It seems to work because my script is creating a folder for each value, but I get an error 75 each time I execute the script:
i = 1
a = Workbooks("Overzicht categorieën.xlsx").Sheets(1).Cells(i, 1).Value
Do While a <> ""
For Each cell In OutRng
dirname = Cells(i, 1).Value
MkDir (FilePath & "\" & dirname)
Next cell
i = i + 1
Loop
What goes wrong?
It seems to work because my script is creating a folder for each value, but I get an error 75 each time I execute the script:
i = 1
a = Workbooks("Overzicht categorieën.xlsx").Sheets(1).Cells(i, 1).Value
Do While a <> ""
For Each cell In OutRng
dirname = Cells(i, 1).Value
MkDir (FilePath & "\" & dirname)
Next cell
i = i + 1
Loop
What goes wrong?