Programming PowerPoint. How can I programmatically clear several rows in a table?

Participant 41 Reputation points
2024-08-07T15:34:00.49+00:00

How can I programmatically clear several rows in a table?

In PowerPoint itself (without programming), I clear several rows like this: select the rows I need and press the Delete key on the keyboard.

How do I do exactly the same action using programming?

Microsoft 365 and Office Development Other
Microsoft 365 and Office PowerPoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Korchok 6,126 Reputation points
    2024-08-07T17:40:24.7966667+00:00

    VBA macros don't offer any interaction to select rows. You would have to define the rows to be deleted in the macro, and the macro would always delete the same rows in each table where you used it.

    It's possible to create a macro that clears a set of selected rows, but that has no advantage over simply pressing the Delete key.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.