Link to home
Start Free TrialLog in
Avatar of bumhats
bumhats

asked on

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

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.
Avatar of GlennaShaw
GlennaShaw

Try adding this to your code:

Application.DisplayAlerts = False

Application.DisplayAlerts = True
ASKER CERTIFIED SOLUTION
Avatar of Kechka
Kechka
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of bumhats

ASKER

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


SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bumhats

ASKER

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!!
Avatar of bumhats

ASKER

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.
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.