Update PowerPoint presentation with linked Excel objects without displaying Excel macro warnings?

Posted on 2009-04-07
Last Modified: 2013-11-10
Is there any way to prevent the Excel macro warning message from being generated when updating linked objects within a Powerpoint presentation?

I have a large presentation fed by over 30 separate workbooks, all of which use automation to collate the required data and charts and therefore contain macros.  I have developed a Powerpoint addin to find and replace text in the links, e.g. to point the link to a newer version of the file in another folder.  This works fine but I get the annoying message for every file and have to press "Enable" or "Disable".

Any help hugely appreciated!

Many thanks,
Question by:bumhats
  • 4
  • 3
LVL 21

Expert Comment

ID: 24089130
Try adding this to your code:

Application.DisplayAlerts = False

Application.DisplayAlerts = True
LVL 10

Accepted Solution

Kechka earned 125 total points
ID: 24089235
LVL 21

Expert Comment

ID: 24089399
A nice thorough discussion of the options and work-arounds is available on this thread:
Although it Excel and Word, the issue is the same.

Author Comment

ID: 24094626
Thanks for the replies so far guys.

Adding Application.DisplayAlerts within the PowerPoint code doesn't stop the problem, it only suppresses PowerPoint generated warnings unfortunately!

The Digital Signature looks like the best solution - I've been using VBA for years but I've never used signatures due to never really needing to.  I've tried loading the self-cert tool but it's blocked by our IT department's software policy, if I can get them to allow me to use this I should be ok to sign all the Excel files.

Thanks again, will keep you posted on how I get on! :)

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

LVL 21

Assisted Solution

GlennaShaw earned 125 total points
ID: 24096216
You could lower the macro security setting in the interim.

Author Comment

ID: 24096305
Yes - just tried that and it worked.  I opened an instance of Excel and went to Options>Security>Macro Security and set it to Low.  I then ran the code in PowerPoint to update the linked objects and it happily ran without the security warnings.

As you say this is perfect for the interim - also when the instance of Excel is closed the security level defaults to Medium upon reopening, minimising the threat of any macro viruses running.

I'll definitely be using this for the time being and will used digital signatures as soon as possible.

Thanks to you both for your help on this, my problem seems to be solved!!

Author Closing Comment

ID: 31567601
Thanks both - I've double the points allocation so you both get 125 as you both offered good advice.

Very glad I joined this community yesterday!

LVL 21

Expert Comment

ID: 24096348
See also this on trusted locations:
If you can set this, you won't need the self-cert assuming you're using Office 2007.

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now