Book

Suggestions


Enter your email address:

Delivered by FeedBurner


Home Page

Bloglines

1906
CelebrateStadium
2006


OfficeZealot

Scobleizer

TechRepublic

AskWoody

SpyJournal












Subscribe here
Add to 

My Yahoo!
This page is powered by Blogger. Isn't yours?

Host your Web site with PureHost!


eXTReMe Tracker
  Web http://www.klippert.com



  Wednesday, February 04, 2009 – Permalink –

Automate Word Tables

VBA examples and instructions


The Microsoft Developer's Network has a pretty comprehensive article on programmatically working with data and Word tables.

"You can look at the world as split into applications that store data (databases) and applications that present information, such as Microsoft Office Word 2003 and Microsoft Office PowerPoint 2003. Increasingly, the end user demands to display database content in documents and presentations.

While Word does provide some tools for displaying tables from databases in its documents, these are somewhat rudimentary, they require a basic understanding of how the database is built, and using them involves a number of steps. In addition, there may also be security and access issues involved, requiring additional layers of protection.

The developer is therefore increasingly confronted with the task of transferring data into Word, whether in the form of tables, or as part of the document text. This article considers some of the major aspects of using the Word object model to work with tables."


  • Introduction to Automating Tables
  • Creating Tables Programmatically in Word
  • Populating Word Tables with Data
  • Adding Linking in Word Tables Programmatically
  • Extracting Data from Word Tables Programmatically
A downloadable document is also available for those of us still addicted to paper. Automating Word Tables for Data Insertion and Extraction See all Topics

Labels: ,


<Doug Klippert@ 3:07 AM

Comments: Post a Comment


  Saturday, May 10, 2008 – Permalink –

Tables

Without reservations


Word is more versatile than Excel or PowerPoint when it comes to manipulating how a table will appear. Go to View>Toolbars Tables and Borders, and also see the Table menu especially, "Table Properties" .
(In 2007 go to Insert Table, or Right click the Table)

Often, you will insert a table at the top of a document, and then later realize that you need to enter text above the table.

A keyboard shortcut to fix this is to place the insertion point in the first cell in the top left corner of the table.

Hit Ctrl+Shift+Enter and Word will move the table down and place the insertion point at the top.

This is also the combination used to split an existing table in two.
(If there are no entries in the cell, the Enter key will move the insertion point. If there is text in the cell or a paragraph above the table, then the Enter key will just start a new paragraph inside the cell.)

Here are some more suggestions from the Word MVPS web site:
Maximising the performance of Word tables

Rutgers University:
Word 2003: tables




See all Topics

Labels: , ,


<Doug Klippert@ 8:58 AM

Comments: Post a Comment