I'm wanting to export a range of cells to a text file. There's a guide how to do this on the Microsoft Website...
http://support.microsoft.com/kb/291296
It works fine, except it's a little tiring having to input the filename & path each time. I'd rather have a cell on the active worksheet (that I wish to export from) setup with a filename...& use that cell value rather than have the input box popup.
I've tried a few permutations, but can't get it to work!
How can I modify the MS code (below), to rid me of the input box & just use file name taken from the contents of a nominated cell - for example if cell b:27 has the filename C:\1.TXT in it, the macro will then export the cells with that name.
(I've only extracted the bits from their code that appoly to opening & creating the filename)
Bookmarks