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?

PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
291 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,896 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Korchok 5,326 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.