Quote:
Originally Posted by Cendrinne
Hummmmm, I'm getting an error message. My system is in French, so I'll try to translate. Execution error 5258. The maximum width has been reached, when I click on Debug, it goes to the row: .Columns.Add
|
That will be because you're adding so many columns that the maximum permissible width is being exceeded. You could try reducing the overall table width or just the widths of the new columns. For example, you might insert:
Code:
.AutoFitBehavior wdAutoFitWindow
before:
Code:
Set Rng = .Cell(r, c).Range