View Single Post
  #4   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Automatically Formatting column widths

Hi ?B?YmF1ZXIxNzJ1dw==?=,

The program is exporting the information into an MS word table. Since the
export process creates the table, I have no way to define the column widths
at the time of creation. Rather, what I need to be able to to is to just
size the columns of an existing table at the click of a button (I dont want
the user to go through multiple steps to format this table. Just a few
clicks and voila). Will the Table Autoformat work for this?

No, TableAutoFormat won't give you anything for setting column widths.

If this is being automated, the automation COULD set the widths, of course. $

Other than that, you'd need to provide the facility for the user. I have
trouble imagining a button IN the table, although you could certainly do that
(macrobutton field or ActiveX control).

I'd be more inclined to provide a custom toolbar with a button to pop up an
InputBox or whatever you deem most appropriate. Or you could even have it
bring up Word's built-in dialog box, if that's what you'd prefer.

Another possibility would be to use Events, so that you really do capture the
user "clicking in the table". (WindowSelectionChange), but you'd have to
really think through how/when you'd want it to fire.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)