Outputting Excel rows to a series of text files

后端 未结 3 1129
小蘑菇
小蘑菇 2020-11-27 20:02

Inside Excel, I have a list of article names in column A, and a disclaimer inside column B. Now for each article in column A, I would like to create a text file, were A is t

3条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 20:41

    I do not have enough Rep to comment on other people's post yet so I have to post this as an answer. The accepted answer by @transistor1 works; however, in Excel 2010 need to change

    Set oSh = Sheet1

    to Set oSh = ThisWorkbook.Worksheets("worksheet")

    Where "worksheet" is the name of the worksheet the data is on.

提交回复
热议问题