Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NJ - 15 Aug 2006 19:55 GMT
How do we hide or display certain columns in a Word 2003 template or document
using VB?  Thanks
Jezebel - 16 Aug 2006 00:39 GMT
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.

> How do we hide or display certain columns in a Word 2003 template or
> document
> using VB?  Thanks
NJ - 16 Aug 2006 14:29 GMT
How do I do it in VB?

> 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
[quoted text clipped - 3 lines]
> > document
> > using VB?  Thanks
Jezebel - 16 Aug 2006 22:22 GMT
MyTable.Columns(1).PreferredWidth = 0

> How do I do it in VB?
>
[quoted text clipped - 6 lines]
>> > document
>> > using VB?  Thanks
NJ - 17 Aug 2006 14:34 GMT
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.

> MyTable.Columns(1).PreferredWidth = 0
>
[quoted text clipped - 8 lines]
> >> > document
> >> > using VB?  Thanks
Jezebel - 17 Aug 2006 15:37 GMT
Yes, well it was never likely to be a satisfactory solution. Word tables are
not spreadsheets.

> 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.
[quoted text clipped - 12 lines]
>> >> > document
>> >> > using VB?  Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.