Sub CreateDirs(sFile) aDirs = Split(sFile, "\")for i = LBound(aDirs) to UBound(aDris) sDir = sDir & aDirs(i) & "\" on error resume next MkDir sDirNextEnd Sub