I am new to VBA. How can I extract the only column from the CSV data and place it into anywhere in the spreadsheet?
I have a CSV file that looks like this that came from an API/URL
A,B,C,D,E
1,2,3,4,5
6,7,8,9,10
11,12,13,14
14,15,16,17
I have this code but it displays all the CSV data. How can I get only one or two columns from the data and place it anywhere in the spreadsheet?
Sheets(1).Range(Range("A1"), Range("A1").End(xlDown)).TextToColumns _
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=True, Comma:=True, Space:=False, Other:=False, _
FieldInfo:= _
Array(Array(1, 2), Array(2, 2), Array(3, 2), Array(4, 1), Array(5, 2))