Removing quotation marks in a txt-file

G

Guest

Hi,
I have to remove quotation marks in a txt-file during a certain procedure.
How can I do it using excel-macro?
 
G

Guest

First import the txt file into Excel.

Then enter and run:

Sub dont_quote_me()
Dim r As Range
For Each r In ActiveSheet.UsedRange
If r.PrefixCharacter = "'" Then
r.Value = r.Value
End If
Next
End Sub

Then save the file back as txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top