A macro to save to text... without delimiters or quotation marks.

Oliver Dewar

Board Regular
Joined
Apr 17, 2011
Messages
201
Hi my gurus of excel!

I need to take the text string from a range of cells and put it into a text file (.html) as an exact copy with no added extras.

Am I missing a simple solution? (I hope so)

I've tried fileformat xltextprinter, this only seems to copy a very small amount of text.

xltext puts quotation marks everywhere.

I thought I had it... but then didn't when I stumbled across a solution listed here:
http://www.excelforum.com/excel-programming/585146-macro-to-copy-data-from-excel-to-notepad.html

It uses system objects. But it changed my apostraphes into (x92) and so was not a success.

If someone has a solution I'd be so greatful.

Regards,

Oliver
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
;) OK... I'm going to post my own answer.

The method described on the link in my original post does work but it doesn't preserve some symbols commonly used is writing. Now for my purposes (HTML) there is a way around this: replace the symbols with their corresponding html code (which is better practice anyway).

Hope that helps someone out there apart from me!
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

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