How to avoid extra double qoutes when saving sheet as text file?

PeeterP

New Member
Joined
Oct 4, 2015
Messages
32
I have a VBA that saves the sheet as text file, sheet has only 1 column where each cell has youtube embede code ike this:
Code:
********> width="560" height="315"  src="https://www.youtube.com/embed/JbXhEozJZzg?rel=0&controls=0&showinfo=0"  frameborder="0" allowfullscreen>*********>

But when i save that sheet as text file, excell will add double qoutes to each existing double qoutes + 1 at the beginning and 1 ad the end of each row reslting each row to look like this:
Code:
"********> width=""560"" height=""315""  src=""https://www.youtube.com/embed/pE7ODk6vtEc?rel=0&controls=0&showinfo=0""  frameborder=""0"" allowfullscreen>*********>"

Part of vba that saves the file is this:
Code:
ActiveWorkbook.SaveAs Filename:="youtube.txt", FileFormat:=xlText, _
CreateBackup:=False

How can i avoid this and keep the original format that i have in excell sheet?

NOTE: Forum engine has removed iframe html tags from my code and replaced them by stars.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
OK i was digging little bit on google and found the answer, here is how to save the text files without getting any extra qoutes:
Code:
<code>ActiveWorkbook.SaveAs FileName:=myFileName, FileFormat:=xlTextPrinter, CreateBackup:=False</code>
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,771
Members
452,941
Latest member
Greayliams

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top