I am using following applescript code to Left indent all paragraphs in slide 1.
But this code gives me error "
".
Can anyone help me on this.
tell application "Microsoft PowerPoint"
tell slide 1 of active presentation
tell text range of text frame of shape 1
repeat with i from 1 to count of paragraphs
set left indent of paragraph format of paragraph 1 to 5
end repeat
end tell
end tell
end tell
Oh, that’s a good point. It worked on my test because I only bothered making one paragraph in my test document.
However, that typo would explain the result if the OP were getting only the first paragraph indented, but not all the rest. But he said he’s getting an error message… fixing the typo you noted should only fix it so all paragraphs get indented, not prevent an error message.