I'm trying to create a formatted INI file using Excel.
Let's say I have a column of IP addresses. I'd like the column exported to an INI file with text before and after the IP address.
My INI file should look something like:
[Transfer-List]
Status=Inactive
CountStation=255
Station1=XXX.XXX.XXX.XXX;VKDGenerator
Station2=YYY.YYY.YYY.YYY;VKDGenerator
Station3=ZZZ.ZZZ.ZZZ.ZZZ;VKDGenerator
Station4=AAA.AAA.AAA.AAA;VKDGenerator
Station5=...
...
...
Since I'd like to create an INI file, the first three lines, the Station n° and VKDGenerator are mandatory.
The code below runs, except my ini file is still empty.

I think it is due to the formulas in my cells to show the filtered results.

The cells contain the following formula:
=IFERROR(INDEX(_DATA!$B$2:$F$2685;_DATA!$I15;COLUMN(Generator!$K$3:K16));"")
Open a file for output then scan down the spreadsheet printing each line.