Hi
I have a workbook that contains many worksheets that have been generated from a column of data contained in work sheets in the same workbook, here is the code:
Most of the data in the cells is the same on everysheet but there are some that change by referencing data on sheet1, with this formula (and with a great deal of help from Brokenbiscuit on this forum)
="DIST="&VLOOKUP(VALUE(MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,3)),Sheet1!N:P,3,FALSE.
This works great while the data is in the worksheet, However when I export the sheets as a text file the resulting text file has #VALUE! instead of the result of the formula. Here is the code I am using for creating text files from each of the worksheets:
Any Ideas on how I can keep the formula result in the exported text files?
Tim
Bookmarks