Search code examples
vbapowerpointspacing

In powerpoint VBA, how to change the spacing of a font in a textbox?


Do you know what the command in VBA is in order to space out some text? I looked on the internet and didn't find anything that would work.

this "SOMMAIRE" textbox has no spacing

not spaced out

and this, is what I want that textbox to look like : enter image description here

there is more space in between the letters

more exactly, I am looking for the VBA code for this exact button : enter image description here


Solution

  • Use the shape's .TextFrame2.TextRange.Font.Spacing property. By default it is probably 0. You can change it to other values to increase the font spacing.