This code adds the filename, paragraph number, and first sentence of each paragraph in a document to an Excel worksheet.

ws_first_sentencecellrow=row_count_fs column=1 value=filename for i para in enumeratedocparagraphs if lenparatextstrip 0 first_sentence = paratextsplit