Solved

Alignment for columns in word table using VBA Code

Posted on 2004-08-12
3
819 Views
Last Modified: 2010-08-05
Hi All,

I am using VBA code to build a word document from existing one. I have added few tables to it. This code works well, only the problem is with that i have written

oTable.Rows.Alignment = wdRowAlignRight

but it is not working. It is not giving any error message also but not working. The data it represent is still left aligned.
I got one example from MSDN there they have also using same. Is there anyting I have to do? Can anyone please help me out on the same.

Thanks in advance,

Regards,
Deepak Khopade
0
Comment
Question by:deepak_khopade
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
kolpdc earned 500 total points
ID: 11792035
i think, i'm not able to help you directly, but perhaps this gives you a hint (complete word-api):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question