|
-
Sep 9th, 2012, 10:35 AM
#1
Thread Starter
Lively Member
[RESOLVED] Remove quotation marks
I'm opening a csv file and I'm trying to check for quotation marks within the string so that I can remove them.
For example in the following "Trial "A" 123" I want to get it so that it's "Trial A 123"
I thought I could analyze each individual character (and if a character was a quotation mark then I was going to remove it.) But that's no good because VB identifies the 2nd quotation mark as the end of the string. In other words, all I get when I input the string is "Trial "
So what can I do to solve this problem? Thanks.
-
Sep 9th, 2012, 11:36 AM
#2
Re: Remove quotation marks
You can read the file line by line using the line input # method into a string then examine that string which will contain the entire line from the file including the "s
-
Sep 9th, 2012, 01:29 PM
#3
Thread Starter
Lively Member
Re: Remove quotation marks
Ah yes of course.... I did the line input, got rid of those quotation characters and now I'm looking at my new csv file with the correct characters/words. And the incorrect csv file is still intact. Nice. Thanks DataMiser!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|