[COLOR=blue]Public[/COLOR] [COLOR=blue]Sub[/COLOR] phoo()
[COLOR=blue]Dim[/COLOR] arr()
[COLOR=blue]Dim[/COLOR] rngText [COLOR=blue]As[/COLOR] Range
[COLOR=blue]Dim[/COLOR] iFile [COLOR=blue]As[/COLOR] [COLOR=blue]Integer[/COLOR]
[COLOR=blue]Dim[/COLOR] strText [COLOR=blue]As[/COLOR] [COLOR=blue]String[/COLOR], strFileName [COLOR=blue]As[/COLOR] [COLOR=blue]String[/COLOR]
[COLOR=blue]Set[/COLOR] rngText = Range("C2", Range("C" & Rows.Count).End(xlUp))
arr = Application.Transpose(rngText)
strText = [COLOR=blue]Join$[/COLOR](arr(), vbCrLf)
iFile = [COLOR=blue]FreeFile[/COLOR]()
strFileName = "C:/TestIt.txt"
[COLOR=blue]Open[/COLOR] strFileName [COLOR=blue]For[/COLOR] [COLOR=blue]Output[/COLOR] [COLOR=blue]As[/COLOR] #iFile
[COLOR=blue]Print[/COLOR] #iFile, strText
[COLOR=blue]Close[/COLOR] #iFile
[COLOR=blue]End[/COLOR] [COLOR=blue]Sub[/COLOR]
[COLOR="Blue"]Public[/COLOR] [COLOR="Blue"]Sub[/COLOR] phoo()
[COLOR="Blue"]Dim[/COLOR] rngCell [COLOR="Blue"]As[/COLOR] Range
[COLOR="Blue"]Dim[/COLOR] iFile [COLOR="Blue"]As[/COLOR] [COLOR="Blue"]Integer[/COLOR]
[COLOR="Blue"]Dim[/COLOR] strFileName [COLOR="Blue"]As[/COLOR] [COLOR="Blue"]String[/COLOR]
iFile = [COLOR="Blue"]FreeFile[/COLOR]()
strFileName = "C:/TestIt.txt"
[COLOR="Blue"]Open[/COLOR] strFileName [COLOR="Blue"]For[/COLOR] [COLOR="Blue"]Output[/COLOR] [COLOR="Blue"]As[/COLOR] #iFile
[COLOR="Blue"]For[/COLOR] [COLOR="Blue"]Each[/COLOR] rngCell [COLOR="Blue"]In[/COLOR] Range("C2", Range("C" & Rows.Count).End(xlUp))
[COLOR="Blue"]Print[/COLOR] #iFile, rngCell.Value
[COLOR="Blue"]Next[/COLOR] rngCell
[COLOR="Blue"]Close[/COLOR] #iFile
[COLOR="Blue"]End[/COLOR] [COLOR="Blue"]Sub[/COLOR]