Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Microsoft Word _ Table Layout

Posted by: DanielPineault Nov 25 2018, 07:03 AM

I've been pulling my hair out trying to setup a simple table structure and was hoping someone here might be able to give me a better, more functional approach.

I originally was working in 2013. I have a multi-row, multi-cell table layout. I'd go to apply a bottom border on individual cells as required by my design and it would work most of the time, but for a couple cells, it wouldn't apply the border?! This seems to be a bug from what I could find online as many people seem to experience this.

So I switched to Word 2010, and was able to get my borders applied correctly. (5 minute job turned into a 3 hours job - thank you MS!)

Today, I wanted to simply move a couple rows around, which I managed to do successfully, but in the process, Word decided to help me out and resized cells?! Now I've tried in both 2010 and 2013 and can't get Word to do what I ask it to do. I select specific cells to resize and other cells throughout the table change sizes as well, which makes absolutely no sense. I've been fighting a loosing battle for a couple hours now. No word of a lie, this whole process shouldn't have taken more than 10 minutes total and I am now on hour 5!

Is there a better way to resizing a cell so the rest of the table stays intact?
Is there a version of Word that table design works properly and isn't all hooey screwy? (Oh, how I miss FrameMaker!!!)

I just tried using Word 2003 and same result, a mess!

Posted by: ADezii Nov 25 2018, 04:14 PM

  1. As far as the Border issue, why not try programmatically applying the Borders? The following Macro will apply a Double Bottom Border to a Table with a width of 150 points. The two Cells for which the Border will be applied are: Row 2/Column 2 and Row 2/Column 3.
    Dim myCells As Range

    With ActiveDocument
      Set myCells = .Range(Start:=.Tables(1).Cell(2, 2).Range.Start, _
                     End:=.Tables(1).Cell(2, 3).Range.End)
    End With

    With Selection.Borders(wdBorderBottom)
      .LineStyle = wdLineStyleDouble
      .LineWidth = wdLineWidth150pt
    End With
  2. As far as the other issue, to be honest, I am a little confused.

Posted by: DanielPineault Nov 25 2018, 06:14 PM

I'll try the code option, but for normal use this just won't work going back and forth GUI to VBE...

As for item 2, what are you confused about? Modify the width of cell 1 and the width of cell 14 changes? That's literally the type of thing I am seeing in Word 2003, 2010, 2013. I'll see if I can somehow make an animated GIF to demonstrated.

Posted by: JonSmith Nov 26 2018, 04:05 AM

Word has some nasty habits, I find it is appalling at tables and objects for the reasons you describe and more.
Its similar to my frustrations with Excel for guessing data types and reformatting information or losing it depending on the type of file you save.

I have found that sometimes making the table in Publisher helps as that is much more sensible and then I can copy to Word.

Posted by: DanielPineault Nov 26 2018, 04:39 AM

@JonSmith - Thank you for the idea, it's worth a try.

Posted by: isladogs Nov 26 2018, 06:03 AM

I select specific cells to resize and other cells throughout the table change sizes as well, which makes absolutely no sense.

Its another example of Word 'trying to be helpful'.
Instead of adjusting the table width to keep the other columns the same width as before, Word keeps the table width the same and adjusts the width of one or more of the other columns accordingly.
I tend to adjust the column I require different, then use distribute columns equally for the rest

In the table options try the effect of ticking/unticking automatically resize to fit contents

Posted by: ADezii Nov 28 2018, 10:55 AM

After you modify the width of Cell 1 and the width of Cell 14 subsequently adjusts, you should be able to simply select Cell 14, the Layout Tab, and under Cell Size use the Height and Width Spinner Controls to re-establish the previous width.

Posted by: DanielPineault Nov 28 2018, 11:08 AM

Sure, but then other cells change in other rows. Microsoft has serious issues with their tables. Simple tables, no problem, get into complex layouts and things simply go wild! It ends up being a never ending battle.