Outlook의 여러줄로 된 본문을 구글시트에 보낼때 한 셀에 들어가네요

outlook의 본문을 구글시트로 보내서 스프레드시트의 함수를 통해 가공 후 다시 메일을 받아오려고 합니다. 그런데, 본문이 여러줄일 경우, 스프레드시트로 이동시 하나의 셀에 여러줄이 같이 들어가게 되어
함수값을 지정할 수 가 없습니다.

본문이 여러줄일 경우, 시트도 여러 행으로 나눠 입력할 수 있는 방법이 있나요?

eng.
I’m going to send the body of the outlook to the Google sheet and process it through the function of the spreadsheet and get the mail again. However, if the text is multiple lines, when you go to the spreadsheet, multiple lines are put together in one cell.
Cannot specify a function value.

If the text is multiple lines, is there a way to enter the sheet divided into multiple lines?

어떤 액티비티를 사용해서 입력하셨는지는 모르겠지만 셀 하나에 다 들어갔다고 하면 Write Cell 처럼 칸 하나를 대상으로 입력하는 액티비티를 사용하셨을 것으로 보입니다.

여러 줄로 입력하고 싶으실 때에는 Write Range처럼 범위로 입력하는 액티비티를 사용하셔야 합니다.
그리고 보통 Range로 입력하는 액티비티들은 모두 Datatable 타입의 변수를 입력 값으로 받기 때문에 메일 본문을 datatable 변수로 변환하는 작업이 필요할 것으로 보입니다.

행 단위로 구분해서 변환한다고 하면 Environment.Newline(vb를 사용하신다면 vbCr이나 vbCrLf도 가능)으로 Split 하셔서 나온 배열을 For each 안에서 Add Data Row 액티비티로 한 줄씩 추가하는 방식으로 변환이 가능 할 것 같습니다.

매우 감사합니다! 잘 작동됩니다!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.