savvydaa.blogg.se

Convert text into table in word
Convert text into table in word











convert text into table in word convert text into table in word

Selection.ConvertToTable Separator:=wdSeparateByDefaultListSeparator, _ Selection.EndKey Unit:=wdLine, Extend:=wdExtend Shorter sentences > empty cells longer sentences: stacked rows.

convert text into table in word

This is the code of the macro, which only works properly for other sentences with the same number of words. This works fine on the sentence I record the macro on, however, the macro stores the number of words of that sentence only, and then I cannot readily apply it to shorter or longer sentences.Ĭolorless green ideas sleep furiously at night One of the steps of the macro is to select the sentence and then convert text to table > Separate text at. I've recorded a macro to convert a sentence into a one-row table-one word per cell, and then do a few other things like add rows, etc.













Convert text into table in word