+ Reply to Thread
Results 1 to 3 of 3

Excel VBA to act on PowerPoint file that is already open?

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Office 365
    Posts
    71

    Excel VBA to act on PowerPoint file that is already open?

    Hello good VBA people!

    I have some VBA code in Excel that acts on PowerPoint, which is nce. However, I have always opened the PowerPoint file from the VBA code.

    I would like to make a more general toolbox, where I use Excel macros to to change something in an open PowerPoint file. The question is, how do I refer to a PowerPoint file that is already open and?

    The refrase, I would like to have a general pptx file open, then be able to run an Excel based macro on it, without having to specify the file other than having it open in the background. I have tried to search around for this, but all examples found involved making new pptx files, which is not what I want.

    Anybody has any idea?


    GregersDK

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Excel VBA to act on PowerPoint file that is already open?

    Assuming that you've previously been using CreateObject to create a new PowerPoint application/presentation, you can switch to using GetObject something like this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Office 365
    Posts
    71

    Re: Excel VBA to act on PowerPoint file that is already open?

    Oh man, I thought it would be something simple... It's one of those things that are difficult to Google if you don't already know the right expression I guess...

    Thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open Fresh Excel File through PowerPoint VBA and transfer the input in Excel file
    By brajpalshishodia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2018, 02:41 AM
  2. [SOLVED] Open Powerpoint file and read document properties from Excel
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2018, 05:33 AM
  3. Replies: 1
    Last Post: 06-09-2016, 12:05 PM
  4. [VBA Chanllenge] in PowerPoint. Open/Close excel file in linked graph
    By jackyboris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2016, 12:07 PM
  5. Replies: 1
    Last Post: 03-27-2013, 08:33 AM
  6. Replies: 13
    Last Post: 01-11-2013, 04:46 PM
  7. How to open Excel file from PowerPoint?
    By Bob H in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1