Open folder based on cell value
I just figured it out (how to chnage the date "month/day/year" to
"month-day-year" the following works nicely
Dim lRow As Long
lRow = ActiveCell.Row
Const sInitPath As String = "C:\Users\Public\Pictures\" '//main path
'Add subfolder[s]
strpath = sInitPath & Cells(lRow, "B") & "\" & Format(Cells(lRow,
"C").Value, "MM-DD-YY") & "\"
strfile = Dir(strpath & "\*.jpg")
Garry, thanks for all your help.
Burl_h
|