How to Format a Variable Text, to Produce Uniform Column Table?

Here's an evolution of the same concept:

Align Text as Columns.kmmacros (23 KB)

Macro screenshot


Example input:

Instrument: Name: Wife: Years Married

Rhythm Guitar: John: Yoko: 69-80
Bass: Paul: Linda: 67-98
Lead Guitar: George: Pattie: 66-77
Drums: Ringo: Maureen: 65-75

Output:

Instrument       Name      Wife       Years Married   

Rhythm Guitar    John      Yoko       69-80           
Bass             Paul      Linda      67-98           
Lead Guitar      George    Pattie     66-77           
Drums            Ringo     Maureen    65-75

Options:

  • Additional Separation Spaces

Set to 0, a single space will separate columns. Any positive value will add addional spaces.

  • Delimiter

Set the delimiter that will differentiate column bounds.

3 Likes