Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2016, 10:03 PM
gmayor's Avatar
gmayor gmayor is offline Transfer of embedded macros after template is opened, Windows 10 Transfer of embedded macros after template is opened, Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Surely any template that uses macros has a potential security risk? Templates are usually stored (and in Word 2016 at least) saved by default in the user templates folder (or used as add-ins in the Word startup folder). These folders will by default be trusted folders, so the macro stored in the template will run from those locations and present no greater potential risk than any other macro that may be in the document created from the template.



Some documents require macros to perform specific tasks, and if there is no connection back to the template (as would be the case if the document was mailed or otherwise passed to someone for completion) to run the macros from the template, then the macros need to be in the document.

Clearly the user would require that macro enabled document to be trusted in order to run it, and that presents no more security issues whether the code is copied manually or by using a macro to copy it, but it is certainly more convenient to use macros to copy then save the document as macro enabled, than to do so manually.

Macros in documents and templates (especially when prepared by others) do indeed present a potential danger and some end users may be unwilling to run them. That is universally true of all macros, but it remains a fact that some processes cannot be completed without macros.

This of course requires users to take a leap of faith, depending on who has supplied the document, to enable the macros in order to run the process, and this remains true whether you supply just the document or make available the template to provide the macro functions.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #2  
Old 12-08-2016, 03:07 AM
BJH BJH is offline Transfer of embedded macros after template is opened, Windows 7 64bit Transfer of embedded macros after template is opened, Office 2010 64bit
Novice
Transfer of embedded macros after template is opened,
 
Join Date: Dec 2016
Location: Swansea, UK
Posts: 4
BJH is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
This of course requires users to take a leap of faith, depending on who has supplied the document
Agreed. I was hoping there would be some way to sign the document, with a pgp key or cerificate of some description, and that our IT department would be able to set up a list of trusted developers which MSOffice would refer to when deciding whether to enable macros or not.

If that kind of solution were possible, most users could have macros disabled by default, except when a document with a good signature from a trusted source is opened.

From my experience so far, there isn't really a good solution for this.

Anyway, a bit off-topic.

Thanks both for your responses.
Reply With Quote
Reply

Tags
macro transfer



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer of embedded macros after template is opened, Newsletter created with template on Mac has many mistakes when opened on PC neco23 Word 1 08-27-2015 09:53 PM
Transfer of embedded macros after template is opened, When creating new template from established template macros getting lost. TechEd Word 3 06-09-2014 07:22 PM
Transfer of embedded macros after template is opened, Word Template is not recognised when opened by double click. Creates new document. stevewak Word 8 03-19-2014 05:12 AM
Creating document from template but macros are still linked to template webharvest Word 0 07-16-2011 09:34 AM
Transfer of embedded macros after template is opened, Macros not working when template is emailed EMH Excel Programming 1 07-06-2011 09:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:58 PM.


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