gotmatt
08-05-2011, 02:44 PM
Hi all!
I've searched all through the interwebs and have had no luck with this issue, so thanks ahead of time!
I have a few documents in which I need to format a very specific paragraph. The paragraph is at the beginning of a section, but the number of that section is not always the same. The fact that its section always has 3 columns is the same in all my documents.
I need to figure out a way to test what the number of text columns is. If the number is three, then I know to edit its first paragraph. I'm having trouble testing this.
I've tried using the textcolumn object like:
Activedocument.sections(x).pagesetup.textcolumns.count
in the context of:
For m = 1 To ActiveDocument.Sections.Count
With ActiveDocument.Sections(m)
msgbox ActiveDocument.Sections(m).PageSetup.TextColumns.Count
End With
Next
Word will have none of it :(
Have any ideas? Thanks!
-Gotmatt
I've searched all through the interwebs and have had no luck with this issue, so thanks ahead of time!
I have a few documents in which I need to format a very specific paragraph. The paragraph is at the beginning of a section, but the number of that section is not always the same. The fact that its section always has 3 columns is the same in all my documents.
I need to figure out a way to test what the number of text columns is. If the number is three, then I know to edit its first paragraph. I'm having trouble testing this.
I've tried using the textcolumn object like:
Activedocument.sections(x).pagesetup.textcolumns.count
in the context of:
For m = 1 To ActiveDocument.Sections.Count
With ActiveDocument.Sections(m)
msgbox ActiveDocument.Sections(m).PageSetup.TextColumns.Count
End With
Next
Word will have none of it :(
Have any ideas? Thanks!
-Gotmatt