Hemsat
04-05-2017, 09:09 PM
I'm new to VBA macros and trying to write a macro to hide the blank rows
in a Powerpoint table. I'm not sure which properties to use and how to
move on. Any help is highly appreciated. Thanks.
Sub TableRowHide()
Dim sl as Slide
Dim shTable as Shape
Dim pres as Presentation
Dim irow as Integer
Dim icol as Integer
Dim counter as Integer
Set pres = ActivePresentation
With sh.Table
For irow = 1 to .Rows.Count
counter = 0
For icol = 1 to .Columns.Count
If shTable.table.Cell(irow,icol).Shape.Textframe.Textrange.Text = ""
Then --------------
counter = counter + 1
End If
If counter = .Columns.Count Then --------
Else ------------
Next icol
Next irow
End With
End Sub
in a Powerpoint table. I'm not sure which properties to use and how to
move on. Any help is highly appreciated. Thanks.
Sub TableRowHide()
Dim sl as Slide
Dim shTable as Shape
Dim pres as Presentation
Dim irow as Integer
Dim icol as Integer
Dim counter as Integer
Set pres = ActivePresentation
With sh.Table
For irow = 1 to .Rows.Count
counter = 0
For icol = 1 to .Columns.Count
If shTable.table.Cell(irow,icol).Shape.Textframe.Textrange.Text = ""
Then --------------
counter = counter + 1
End If
If counter = .Columns.Count Then --------
Else ------------
Next icol
Next irow
End With
End Sub