Results 1 to 3 of 3
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What Column(non-table) am I in? (Word2000+)

    I'm building a two-column landscape document by loading chunks of text.
    The target document is in Landscape mode with Format, Columns=2. Note: this is not columns-in-a-table
    As each chunk of text is loaded, I want to compress it until it fits into one column.
    To this end I drop in the text and then insert a Column break so that the next chunk of text will be loaded to the next column; two chunks of text are thus loaded to each single landscape 2-column page.

    My problem lies in ascertaining when a chunk of text has overflowed a column, and on reducing the font or paragraph spacing, knowing when the shrunken loaded text is sufficiently compressed to lie within a single column.

    The best I've come up with so far is to examine something like the .Information(wdHorizontalPositionRelativeToTextBou ndary) at the end of the loaded chunk.
    Any better suggestions?
    I've searched the lounge but most "What column am I in?" questions appear to be related to tables.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: What Column(non-table) am I in? (Word2000+)

    Application.Dialogs(wdDialogFormatColumns).ColumnN o returns the (text) column number of the insertion point / start of the current selection.

    Note: there doesn't seem to be an equivalent for this that works for a Range object.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: What Column(non-table) am I in? (Word2000+)

    >Application.Dialogs(wdDialogFormatColumns).Column No
    Hans you remain a Cool Dude, as some would say.
    Purrfect!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •