I'm finding that the TxtFrame.TextColumns collection contains more columns than the frame preferences are actually set to when paragraphs are set to span across all columns.
In a 1 column frame TxtFrame.TextFramePreferences.TextColumnCount passes back one. However, TxtFrame.TextColumns.count passes back more than 1, in the case of the page pictured below it passes back 2. This appears to be because both the "Appendices" head and the ornament are set to span across all columns because they sometimes introduce 2 column material.
TxtFrame.TextColumns(1).select looks like this:
TxtFrame.TextColumns(2).select looks like this:
I want to know which TxtFrame.TextFramePreferences column a particular insertion point is in, but when a style is set to span across columns that seems to be impossible. I've tried TxtFrame.Texts(1).TextColumns to no avail, it seems to work the same as TxtFrame.TextColumns().
Not as straight forward as it should.
I usually use the insertionPoint's horizontalOfsett property to figure out where it is, and then, based on the frame geometry i can figure out in what "real" column it lives.
Yeah, thought of that. Even may have had it written like that at one point back in CS3. Will have to look into a rewrite.
Thanks for answering.