Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50057

Export a range as text

$
0
0
Hi all,

I'm not a complete novice and can usually butcher other code snippets to do what I want, but despite a fair bit of googling I can't find an example of what I need, any help on this would be greatly appreciated.

I have a series of spreadsheets which contain data which I would like to import into another (3D Design) application.

I wish to export a range of cells (say) D17 to P17 as text into a file with a space as the delimiter.

The spreadsheet to create the output contains a variable number of rows with information in that I need to export, this if from one row to up to 12 rows, so I need the routine to count from the first row of data (which is always row 14) to the last populated row

The output I need should have a separate line for each row.

The output filename should be “c:/macros/E3-Import-todaysdate.txt” E3 being a cell containing the info I need for the filename.

I found something close on www.cpearson.com, but I can't tweak it.

Viewing all articles
Browse latest Browse all 50057

Trending Articles