delart
delart

Reputation: 51

Get exact number in inches with LeftIndent using VBA in PowerPoint

I'm trying to get a 0.3" value for the indentation before text of bullets using VBA in PowerPoint.

I'm using .ParagraphFormat.LeftIndent = 22 in my macro, but this creates a 0.31" indentation value.

21.4 gets me a 0.29" indentation and 21.5 a 0.31" - I can't figure out how to get 0.30" - any idea?

I have the same issue to get a 0.45" indentation value (I am using 33 as value but this create a 0.46" indentation)

Any idea on how to achieve this ?

Upvotes: 1

Views: 133

Answers (1)

user7937272
user7937272

Reputation:

Use the conversion function Application.InchesToPoints

Upvotes: 0

Related Questions