conradcliff
Board Regular
- Joined
- Feb 24, 2010
- Messages
- 58
Hey guys, so I've been trying to figure this out for a while and my brain is fried..hopefully someone can point me in the right direction.
I have a user submitted form online that I import into excel. Using a macro I separate all the data using separators the are automatically added from Formtools.
The problem is that I name a PDF using the data from some of those fields and customers often enter invalid characters including trailing spaces that prevent vba from saving the file.
So, I need to try and create a macro that will replace any invalid file-name character.
From what I've seen so far the code I've found is only good for replacing a character in a specific location of the data..my characters will always be moving around.
If anyone can point me in a good direction I would be super appreciative!
I have a user submitted form online that I import into excel. Using a macro I separate all the data using separators the are automatically added from Formtools.
The problem is that I name a PDF using the data from some of those fields and customers often enter invalid characters including trailing spaces that prevent vba from saving the file.
So, I need to try and create a macro that will replace any invalid file-name character.
From what I've seen so far the code I've found is only good for replacing a character in a specific location of the data..my characters will always be moving around.
If anyone can point me in a good direction I would be super appreciative!