Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
GazzaJ GazzaJ is offline
external usenet poster
 
Posts: 1
Default Increase performance when formatting column widths

I have a big Word document where I create many tables and then format the
width of each column within each table e.g.

Create table
myTable.Columns[1].Width = wordApp.CentimetersToPoints(2.81F);
myTable.Columns[2].Width = wordApp.CentimetersToPoints(3.09F);
etc for 11 columns

This appears to the bottleneck in performance. Is there a better way to set
the column widths of a table, maybe in one go.
  #2   Report Post  
Posted to microsoft.public.word.tables
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Increase performance when formatting column widths

If every table has exactly the same set of columns with the same widths,
then set it up once as an empty table and save it as an AutoText entry in
the template for the document. Then for each new table you can just insert
the AutoText entry and put data in the cells.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

GazzaJ wrote:
I have a big Word document where I create many tables and then format
the width of each column within each table e.g.

Create table
myTable.Columns[1].Width = wordApp.CentimetersToPoints(2.81F);
myTable.Columns[2].Width = wordApp.CentimetersToPoints(3.09F);
etc for 11 columns

This appears to the bottleneck in performance. Is there a better way
to set the column widths of a table, maybe in one go.



  #3   Report Post  
Posted to microsoft.public.word.tables
challa prabhu challa prabhu is offline
external usenet poster
 
Posts: 77
Default Increase performance when formatting column widths

Do the following:
1. Open a new Word document.
2. On the Format menu, click Style and Formatting.
The Styles and Formatting panel opens on the right of the document window.
You will notice that there is not Table style sheet available.
3. Do one of the following:
On the Table menu, point to Insert, and then click Table. The Insert Table
dialog appears click ok
-or-
Click the Isert Table icon onthe Table and Border toolbar. Click OK in the
Insert Table dialog box.
Note: the Table Grid style sheet is displayed under the Pick formatting to
apply, in the Styles and Formatting panel
4. Click the Table Grid Arrow next to the style sheet name.
5. Click Modify Style. The Modify Style dialog box displays.
6. Click the Format list and select Table properties.
7. In the Table Properties dialiog box, click the Table tab. Then click the
Options button. The Table Options dialog box displays. Specify the Default
Margins and the Default cell spacing. Then click OK to return to the Table
options dialog box.
8. In the Table Properties dialiog box, click the Row tab and clear the All
row to break across pages.
9. Click OK in the Table options dialog box.
10. Click OK in theModify Style dialog box.
11. Click the Table Grid Arrow nect to the style sheet name.
12. click Set as default table style.
The Default Table Style dialog box displays.
13. Click All documents based on the Normal.dot template? option under the
Do you want to set this style as the default table style for:
14. Click OK.

Challa Prabhu


"GazzaJ" wrote:

I have a big Word document where I create many tables and then format the
width of each column within each table e.g.

Create table
myTable.Columns[1].Width = wordApp.CentimetersToPoints(2.81F);
myTable.Columns[2].Width = wordApp.CentimetersToPoints(3.09F);
etc for 11 columns

This appears to the bottleneck in performance. Is there a better way to set
the column widths of a table, maybe in one go.

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjust column widths in tables doublew Tables 5 September 1st 06 05:10 PM
Word is changing my column widths JDGuin Tables 2 March 3rd 06 06:51 AM
Automatically Formatting column widths bauer172uw Tables 3 December 2nd 05 01:35 PM
Table column widths DanB Tables 5 June 23rd 05 11:37 AM
Column widths nanner130 Tables 1 March 2nd 05 03:47 PM


All times are GMT +1. The time now is 05:29 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"