RobBroekhuis
Technical User
Hi all,
My Word object model knowledge is sketchy, and I can't figure this one out. I have a table in Word (a document I didn't create myself) with a variety of line styles along the left and right borders. I'm trying to query the line style along the left of the table. When I put the cursor into a first-column cell with a solid line along its left edge, and query in the immediate window:
?selection.cells(1).borders(wdBorderLeft).linestyle
0
(0 is wdLineStyleNone)
similarly, if I try instead of cells(1) to use rows(1) or tables(1), I get the same answer. Is there a different property that sets some of the line styles? The value for .borders(wdBorderRight) is correct, by the way.
Any ideas?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
My Word object model knowledge is sketchy, and I can't figure this one out. I have a table in Word (a document I didn't create myself) with a variety of line styles along the left and right borders. I'm trying to query the line style along the left of the table. When I put the cursor into a first-column cell with a solid line along its left edge, and query in the immediate window:
?selection.cells(1).borders(wdBorderLeft).linestyle
0
(0 is wdLineStyleNone)
similarly, if I try instead of cells(1) to use rows(1) or tables(1), I get the same answer. Is there a different property that sets some of the line styles? The value for .borders(wdBorderRight) is correct, by the way.
Any ideas?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)