Align-right text in PowerPoint table VBA

Currently I'm using VBA to add a table and populate it (connecting to database). Everything works perfect.  However,  I need to align right the text in the cells and I haven't been able to find out how to do this.  Obviously It works just find if I find the align right button on the ribbon, but I need to do this using vba.  I can find out how to center it, but not right align.  Currently this is what I have:
                 With .Cell(iRow, iColumn).Shape.TextFrame
                    '.VerticalAnchor = msoAnchorMiddle
                    .HorizontalAnchor = msoAnchorCenter
                End With

Any Ideas?
LVL 1
badrhinoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JSRWilsonCommented:
Try

With .Cell(iRow, iColumn, 1).Shape.TextFrame
.TextRange.ParagraphFormat.Alignment = ppAlignRight
End With

Open in new window

0
JSRWilsonCommented:
Apology thats a typo!!

With .Cell(iRow, iColumn).Shape.TextFrame
.TextRange.ParagraphFormat.Alignment = ppAlignRight
End With

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
badrhinoAuthor Commented:
Works Perfect.  Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft PowerPoint

From novice to tech pro — start learning today.