getting writable table objects of a document

M

mjlaali

Hi,

I want to change some properties of all the tables in a document, but I
don't know how to get writable objects of tables from the document.
 
J

Jay Freedman

mjlaali said:
Hi,

I want to change some properties of all the tables in a document, but
I don't know how to get writable objects of tables from the document.

Dim myTable As Table

For Each myTable In ActiveDocument.Tables
' do something with myTable, for instance:
myTable.Columns(1).Width = InchesToPoints(1.5)
Next

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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