I have a range that I want to write to a file alternating between columns at each iteration. I would have A1 > B1 > A2 > B2 etc., to give an example:
A | B
1 Hello | World
2 Whats | Up
Now I'd have this in a text file as:
Hello
World
Whats
Up
I have the following code which will grab the info from my first column, but I am stuck at adding the second column at every iteration:
Sub mac()
Dim fso As New FileSystemObject
Dim stream As TextStream
Set stream = fso.CreateTextFile("F:\Hmmmmm.txt", True)
Range("G2").Select
Do Until IsEmpty(ActiveCell)
stream.WriteLine ActiveCell
' Here I would affectively want stream.WriteLine ActiveCell + 1 Column
ActiveCell.Offset(1, 0).Select
Loop
End Sub