Results 1 to 5 of 5
  1. #1
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Table Alignment When Pasting (2002)

    I'm copying individual table rows from an Internet people finder (Intelius.com), then pasting them onto the bottom of a Word table that already contains several of those rows. (The purpose is to make a Word table of all my selected people finder hits.) I paste them immediately to the left of the paragraph mark that follows the Word table.

    When I do this on my own computer, the newly pasted rows attach themselves to the table in a very well-behaved way -- the left side of the new row aligns with the left side of the existing table, each column of the new row aligns itself with the existing columns, etc. The resulting table has all its columns perfectly aligned.

    I have asked two friends to duplicate my work on their own computers (running unknown but probably fairly recent versions of Word), and they get badly-behaved results. The left edges of the newly-pasted rows do NOT align with the left edge of the existing table. The column widths do NOT match the existing ones. The whole thing seems sort of random.

    My application requires that others be able to make well-behaved tables like mine, and I'm 0 for 2 in having them able to do that.

    Any suggestions or insights?
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Table Alignment When Pasting (2002)

    You're not a bunch of spammers, are you? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Word will do its best to convert the HTML in the clipboard to Word formatting. This definitely is a hit-or-miss proposition, because HTML tables can be very flexible in their column widths (adjusting to the data inside) or they can be rigidly fixed; they can be simple or deeply nested. If everyone is pasting from the same HTML table to the same Word table, using the same version of Word, one would expect it to work the same way. However, any change in that equation could lead to unpredictable results.

    But don't worry about it. To clean up the formatting and avoid table corruption, you should finish the data gathering phase, do a Table>Select>Table, Table>Convert>Convert table to text (choose a tab if there is only single-line data, it gets more complicated with multi-line data), then fix the tabs for the raw data, then convert back to a table.

  3. #3
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Re: Table Alignment When Pasting (2002)

    Since I posted, we've learned that the others are using Word 2000, and are never able to make things work out. I am using Word 2002, and I'm always able to make things work out. We are working to prove the theory that Word 2000 is the key to success.

    The tables I'm pasting are, unfortunately, multi-line tables, with the lines separated by newline characters. Worse, some rows are one line, some are two, some are three, etc., on up to 8 or 9, I think. Any suggestions on handling this via convert/reconvert would be very welcome.
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Table Alignment When Pasting (2002)

    If you find and replace the line breaks with one or two characters that don't appear in your data, such as carets (^) or tildes (~), you might be able to paste to Excel and back as a way to clean it up.

  5. #5
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Re: Table Alignment When Pasting (2002)

    Good thinking! I use the tilde method a lot when stripping extra CRLFs. Didn't think of it here. I guess that's why we have Gurus, forums, etc.

    BTW, one of my testers may have found a way to make the columns behave in Word 2000. She pasted her individually copied rows into a single 1x1 table, and everything lined up fine. We now have a multi-row, multi-column table within a 1x1 table. It remains to be seen if I can do the necessary manipulations, but at least we are making progress.
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

Posting Permissions

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