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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
;) 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,221,418
Messages
6,159,793
Members
451,589
Latest member
Harold14

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