Hide or Show a Table Column in a Word Template using VB

N

NJ

How do we hide or display certain columns in a Word 2003 template or document
using VB? Thanks
 
J

Jezebel

Set the preferredwidth to zero. You also need to set the left and right
padding to zero, either for the entire table (which is easiest) or for every
cell in the column you want to hide.
 
N

NJ

How do I do it in VB?

Jezebel said:
Set the preferredwidth to zero. You also need to set the left and right
padding to zero, either for the entire table (which is easiest) or for every
cell in the column you want to hide.
 
N

NJ

This is how I have my code but it still displays column with the width of
..789 and it allows users to drag the vertical line and expand the column.
 
J

Jezebel

Yes, well it was never likely to be a satisfactory solution. Word tables are
not spreadsheets.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top