Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2021, 01:42 AM
Tom cheeseburger Tom cheeseburger is offline Autorun macro when opening the file Windows 10 Autorun macro when opening the file Office 2019
Novice
Autorun macro when opening the file
 
Join Date: Mar 2021
Location: Ratland
Posts: 4
Tom cheeseburger is on a distinguished road
Default Autorun macro when opening the file

Dear all,



I have a VBA code macro that I need to click each time I open the PowerPoint file.

I was wondering if there is a VBA code or option that will autorun my macro when i open the file.

Thank you,

Tom
Reply With Quote
  #2  
Old 07-07-2021, 04:44 AM
JohnWilson JohnWilson is offline Autorun macro when opening the file Windows 10 Autorun macro when opening the file Office 2016
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

It is possible in a pptm file though creating a ppam AQddIn might work better

There is a learning curve though and you should be able to use OfficeRibbonXEditor or something similar to add the custom XML part needed.
I have attached a pptm file with a very simple macro and the XML to run on Ribbon Load - NOTE IT will not work for a ppsm file that doesn't have a ribbon

runMe.pptm
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 07-07-2021, 05:42 PM
Tom cheeseburger Tom cheeseburger is offline Autorun macro when opening the file Windows 10 Autorun macro when opening the file Office 2019
Novice
Autorun macro when opening the file
 
Join Date: Mar 2021
Location: Ratland
Posts: 4
Tom cheeseburger is on a distinguished road
Default

Thank you so much for the reply and solution!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word file says 'Opening in Protected View' but not opening. Yakbird Word 2 07-08-2019 10:55 AM
Autorun macro when opening the file How to execute .exe file after opening an Excel file? S3CRET Excel Programming 2 11-08-2015 12:33 AM
Autorun macro when opening the file Help with a macro which run when opening a doc bjofo Word VBA 1 10-16-2014 10:40 AM
Autorun macro when opening the file Prompt a macro to run when opening a specific file type gmanword Word VBA 5 11-30-2013 02:55 PM
File Conversion Box-Opening PDF file no1texan Word 1 10-24-2012 06:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft