?
Solved

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

Posted on 2009-04-07
8
Medium Priority
?
525 Views
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,
Lee.
0
Comment
Question by:bumhats
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 21

Expert Comment

by:GlennaShaw
ID: 24089130
Try adding this to your code:

Application.DisplayAlerts = False

Application.DisplayAlerts = True
0
 
LVL 10

Accepted Solution

by:
Kechka earned 500 total points
ID: 24089235
0
 
LVL 21

Expert Comment

by:GlennaShaw
ID: 24089399
A nice thorough discussion of the options and work-arounds is available on this thread:
http://www.pcreview.co.uk/forums/thread-879090.php
Although it Excel and Word, the issue is the same.
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

Author Comment

by:bumhats
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! :)


0
 
LVL 21

Assisted Solution

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

Author Comment

by:bumhats
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!!
0
 

Author Closing Comment

by:bumhats
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!

Cheers,
Lee.
0
 
LVL 21

Expert Comment

by:GlennaShaw
ID: 24096348
See also this on trusted locations:
http://office.microsoft.com/en-us/powerpoint/HA100319991033.aspx
If you can set this, you won't need the self-cert assuming you're using Office 2007.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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