Programatically removing borders from a table

  • Thread starter Thread starter Gary A. Bushey
  • Start date Start date
G

Gary A. Bushey

What is the most efficient way to do this? I am using C# to create a table
with 25 rows and 19 columns. I do not want any borders showing up but if I
try to remove them from either the columns or the cells my code times out.
Any better ways?
 
Hi Gary,
Nice of you to stop by.

Don't know about C# but the following would delete the left border in
all rows in a table if it's referenced correctly. You'd probably want
to iterate through the columns.count and also add the other borders as
well.

Dim i As Integer
For i = 1 To _
ActivePresentation.Slides(1).Shapes(1).Table.Rows.Count
ActivePresentation.Slides(1).Shapes(1).Table.Rows(i) _
.Cells(1).Borders.Item(ppBorderLeft).Visible = False
Next i

Brian Reilly PowerPoint MVP
 
Back
Top