Exporting a specific range to a text file

Status
Not open for further replies.

thunderhead

New Member
Joined
Aug 3, 2007
Messages
27
I thought this deserved a topic of its own, although I made a post for the same doubt in an unrelated thread on the forums:


If I have a workbook with graphics (i.e. every worksheet has a standard header with the company logo etc.), but in the rest of the worksheet I have a range of data which I want to export as a text file, is it possible?

I want to export a particular range in a worksheet to a text file (the range may contain dates as a data type too), and save that text file (for simplicity, in the same folder as the workbook...but I'd like it if it throws open a "Save As" dialog box!).

It'll be nice if the columns are tab space and the rows have a carriage return separating them.

(I tried recording a macro, but it said this kind of sheet is not compatible or something along those lines).
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Status
Not open for further replies.

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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