How can I export only Column A & B of this worksheet to a
txt or .csv file?
I have the following code so far, and it is not working:
Set ExpRange = Columns("A:B"
ExpRange.Select
With CSVFile
.ExportRange = ActiveCell.RangeSelection
.Export CSVFilename:="C:\textfile.csv"
End With
thank you!
txt or .csv file?
I have the following code so far, and it is not working:
Set ExpRange = Columns("A:B"
ExpRange.Select
With CSVFile
.ExportRange = ActiveCell.RangeSelection
.Export CSVFilename:="C:\textfile.csv"
End With
thank you!