Creating a table

A

ajtruckle

Hello

I want to create a table with a certain amount of data in as few calls
as possible.

What would be the best approach to this?

Right now I do cell by cell. I should point out that I am actually
using C++ with COM but I glean the syntax from VBA ...

Thanks.

Andrew
 
D

Doug Robbins - Word MVP

Probably the only other way is to write the data as a block of text with
appropriate separators and then use the VBA ConvertToTable command.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
A

ajtruckle

OK, I see where you are coming from. I then have to consider the
quickest way of building the raw text in the file. My only other concern
is that for some of my cells I have multiline content within my
application.

The way I do it now does create a good file but takes too long.

What if I created a data interchange format (DIF) file? Could I use VBA
to read that into word?

Andrew
 

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