I’m updating the question to show what I have already, before adding in lines from here…
Function CleanName(strName As String) As String
'will clean part # name so it can be made into valid folder name
'may need to add more lines to get rid of other characters
CleanName = Replace(strName, "/", "")
CleanName = Replace(CleanName, "*", "")
CleanName = Replace(CleanName, ".", "")
CleanName = Replace(strName, "\", "")
End Function
Rather than multiple string replacements you could use a regexp