简体   繁体   中英

How to export rows and columns to (CSV file 2) from a downloadable CSV hyperlink in (CSV file 1)

3 csv files.

File 1:

在此处输入图片说明

File 2:

在此处输入图片说明

File 3(the file that can be downloaded by clicking on the link in File 1): 在此处输入图片说明

My question is how do I formulate the excel so that it auto grabs the rows and columns in File 3 which can be downloaded with the link in File 1 and export the rows and columns in one line in a single cell in File 2.

Thanks!

My first thought would be to pre-process File 3 in VBA in Excel to concatenate the columns into a string. ie:

temp_row = 2
temp_string = ""
while range("A" & temp_row) <> ""
   temp_string = temp_string & concatenate(Range("A" & temp_row), Range("B" & temp_row), Range("C" & temp_row))
   temp_row = temp_row + 1
wend

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM