Your help thus far is much appreciated. My journey into Excel VBA continues.
My next challenge is creating a folder in a specific destination. The data I'm creating it from is column B which gains a couple lines each week. The routine I'm looking to create would ideally run through all rows starting C2 and create a folder for all new if one hasn't already been created previously.
I've been playing with the below code but it requires me to select the cells I want to create folders for manually and also will not create a folder of my concatenated cell name for some reason?
Sub MakeMyFolder()
Dim Rng As Range
Dim maxRows, maxCols, r, c As Integer
Set Rng = Selection
maxRows = Rng.Rows.Count
maxCols = Rng.Columns.Count
For c = 1 To maxCols
r = 1
Do While r <= maxRows
If Len(Dir(ActiveWorkbook.Path & "\" & Rng(r, c), vbDirectory)) = 0 Then
MkDir (ActiveWorkbook.Path & "\" & Rng(r, c))
On Error Resume Next
End If
r = r + 1
Loop
Next c
End Sub
I should add my concatenated file names take the form off "123 - test"
My question is how can I make the routine work without selection? My data is from C2 to last line of data in Column C.
Your help is always appreciated.