taking out all \/?*[] so input can be name of worksheet
Look in VBA help for : Replace Function Make count -1 to replace all
possible eplacement.
" wrote:
Hi!
I'm reading in a CSV file. I want to use one of the fields as the
name of the WorkSheet. The file is from different clients and the
field is free text. I've come across names with ** or \. Do I have
to use the SUBSTITUTE function 6 times or is there a replaceText
function?
Thanks,
Mechi
|