1
我是VBA宏的新手,試圖編寫一個宏來隱藏Powerpoint表中的空白行。我不確定要使用哪些屬性以及如何繼續前進。如何使用vba隱藏Powerpoint表中的空白行?
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
不要以爲有可能在PowerPoint中隱藏行... – Jbjstam