Can't border individual cell

G

Gary F. Fong

Ok, I have no idea whatsoever about what's going on below.
All help is appreciated.

I'm using MS Word 2000 (9.0.3821 SR-1) w/ MS Windows 2000

I have the following table:

+---+---+---+---+---+---+---+---+---+
| | | | | | | |
+---+---+---+---+---+---+---+---+---+
| | | | | |
+---+---+---+---+---+---+---+---+---+
| | | | | | | | | |
+---+---+---+---+---+---+---+---+---+

For those monospace-font-impaired:
merged c(1,1-2)
merged c(1,8-9)
merged c(2,3-7)

I want to put a 300pt bottom border on the
merged cell(2,3). I have tried all of
the obvious things like:
1) tbl.cell(2,3).Borders(wdBorderBottom).LineWidth = wdLineWidth300pt
2) tbl.Rows(2).Cells(3).Borders(wdBorderBottom).LineWidth = wdLineWidth300pt
3) using ranges instead of cells
4) using selections
5) messing with padding, alignment

What *always* results is the bottom border of 2 cells, cell(2,2) and cell(2,3),
are changed. I only want the bottom border of cell(2,3) changed.

Here's the funny thing. If I don't merge cell(1,1-2), then I don't have my
problem.
Or, if I don't have a 3rd row, I don't have a problem.

I even tried using a cell range bumped by 1, cellrng.Start + 1, thinking that
for some reason an off-by-one issue was occuring, but that only resulted in
bottom bordering 2 other cells, cell(2,3) and cell(2,4).

What's going on?

I need a programmatic fix for a dynamically created table that has many more
rows and merged cells.

Thanks
Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top