Mega Code Archive

 
Categories / VisualBasic Script / Word
 

Converts the current selection to a five-column table, separating the information at commas

Sub sele()     Set myTable = Selection.ConvertToTable(wdSeparateByCommas, _         Selection.Paragraphs.Count, 5, , , , , , , , , , , True, _         wdAutoFitContent, wdWord9TableBehavior) End Sub