Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7769305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:07:37+00:00 2026-06-01T16:07:37+00:00

I am designing a C# application that will open a PowerPoint presentation, split the

  • 0

I am designing a C# application that will open a PowerPoint presentation, split the slides with animations into separate slides, and then export the whole presentation to a series of JPG images. I’m working in Visual Studio 2010, with Microsoft Office 2010.

The project is centered around PPspliT, a VBA macro and add-in that another developer graciously provided, and it works very well! (Thank you!) In essence, I am looking to automate this add-in using an external C# application (as opposed to another macro or Office add-in). My current code is based on a helpful example from Microsoft. If the PowerPoint file to be converted contains the PPspliT_main macro, the RunMacro function in the example works just fine when used like this:

RunMacro(oPP, new Object[]{"'pres1.ppt'!PPspliT_main"});

However, if the macro is not saved in the PowerPoint file itself, the RunMacro function’s code throws a TargetInvocationException because the macro does not exist (even though the add-in is installed). I want to be able to utilize the functionality of the add-in, so that any PowerPoint file can be operated on, not just ones that have the macro saved in them. I would imagine there is a simple way to accomplish this.

A function similar to Application.CommandBars.ExecuteMso("Copy") seems like it is just what I need, but from what I’ve read, it sounds like only built-in functions have an idMso, but not custom functions (like this one). Is this true? Or perhaps I’ll need to edit the PPspliT macro code itself to “expose” it in order to call it from my C# application?

I’ve done a fair amount of searching around for solutions, and have found many articles/posts that are similar to what I’m looking for, but they all seem different enough that they won’t work for my situation. I’m new to working with macros/add-ins, so my terminology/understanding could very well be a bit off as well.

Any guidance would be appreciated. Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:07:38+00:00Added an answer on June 1, 2026 at 4:07 pm

    You’ll want to use PPspliT_main instead of pres1.ppt'!PPspliT_main as the last parameter.

    Including pres1.ppt tells PowerPoint to look for the macro in that file specifically, whereas asking for just the macro name should allow you to call any Public sub or function defined in a loaded add-in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing an internal web application that will have 3 layers: Presentation (MVC)
I'm designing an application that will allow me to draw some functions on a
We are designing an application that will use Rails and Wordpress to interact with
I'm current designing a Rails application that uses a form for user login, then
I am in the process of designing an application that will allow you to
I'm designing a WPF program that will use a DLL-plugin architecture. The host application
I am designing an Android application which will be displaying some news that will
Here is my problem: I am designing an application that will allow students to
I am designing a web based chat feature for an application that will work
I am designing a test application (Using NUnit) that will have to navigate (through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.