Hi Everyone,
Search the forum for hopefully a post on this, but didn't see anything that fit.
Hello everyone,
I am interested in exporting individual columns on one of my worksheets to a text file, one column for each TXT file. Each row in the column has a single IP address and needs to be exported to a text file so that each IP address is on a single line. The list will need to start with the second cell on each column, e.g. A2, B2 and etcetera. Along with the IP Addresses I would like to add a static name descriptionto be added to each IP with comma delimination. Is it possible to make the macro dynamic enough to name each txt with the text in column header? Can this be done with a loop, until the macro hits an empty column header? Or, would the macros have to be created for each column separately?
Column A
A1 PC1
A2 192.0.0.1
A3 192.0.0.2
A4 192.0.0.3
A5 192.0.0.4
A6 192.0.0.5
A7 192.0.0.6
A8 192.0.0.7
Text/CSV file
PC1.txt or PC1.csv
192.0.0.1, PC1
192.0.0.2, PC1
192.0.0.3, PC1
192.0.0.4, PC1
192.0.0.5, PC1
192.0.0.6, PC1
192.0.0.7, PC1
Thanks,
Ruezo
Bookmarks