Macro to save contents of a named range to a file
Yes, it is possible.
Turn on the macro recorder and copy the range(by name) to a new workbook then
save as tab delimited *.txt file.
Gord Dibben MS Excel MVP
On Sat, 30 Apr 2011 23:15:58 -0700 (PDT), kittronald
wrote:
In Microsoft Excel 2007, is it possible to create a macro that saves
the contents of a named range to a tab delimited text file ?
For example, the DATA name refers to A1:C2 and contains the following:
A B C
1 Item Qty Cost
2 Apple 1 1
The text file DATA.TXT would contain:
Item Qty Cost
Apple 1 1
Any ideas ?
- Ronald K.
|