View Single Post
 
Old 06-30-2014, 05:28 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,487
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Cosmo View Post
I tried running your code on the table I had created on Friday, and it had an error at line 48 (.Cells(j).width = .Cells(j).width * pWdth / sCWdth). I used a variable to set the value, and the error did not occur, but the result is still problematic (many rows are not the correct length, and if I try to adjust them, the rest of the rows shift more).

The file I created Friday had no tables or cells that were copied and pasted (each table section was from a brand new created table); the only items copied was the text from the original source document (InDesign). I spent most of the day meticulously creating and adjusting each table. I'm attaching that file if you want to look at ...
The problem is due to having multiple tables in the document you ran the macro on. As noted in the PS quoted in your previous reply, you need to copy the table to a separate document for processing.

PS: Please don't quote entire posts replied to - just the relevant parts, if need be. Anything more just adds clutter.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote