Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2018, 11:22 PM
Rohan Kharvi Rohan Kharvi is offline Enabling Macros automatically when document is opened Windows 7 64bit Enabling Macros automatically when document is opened Office 2016
Novice
Enabling Macros automatically when document is opened
 
Join Date: Dec 2018
Posts: 1
Rohan Kharvi is on a distinguished road
Default Enabling Macros automatically when document is opened


When document is opened it is asking to enable the macros. Without doing the manual setting (> options > security > macros > enable) how to enable macro automatically. This is one of our project requirement . I know this is there for security reason, is there any options to do the same.
Reply With Quote
  #2  
Old 12-11-2018, 04:36 AM
macropod's Avatar
macropod macropod is offline Enabling Macros automatically when document is opened Windows 7 64bit Enabling Macros automatically when document is opened Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It is not possible to change that setting programmatically. If it were, virus/malware writers would have a field day.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-11-2018, 02:31 PM
Guessed's Avatar
Guessed Guessed is offline Enabling Macros automatically when document is opened Windows 10 Enabling Macros automatically when document is opened Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can set a folder as a trusted location so that files with macros contained in that folder are automatically trusted. Typically, you set the templates folder to be a trusted location and ensure the macros are saved in templates, not documents.

See https://support.office.com/en-us/art...3-4e7c67147fb4
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Tags
vb script, vba code, word 16



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling Macros automatically when document is opened Can Macros Automatically Format an Entire Document to My Specifications CrossReach Word VBA 4 11-14-2017 12:51 PM
Enabling Macros automatically when document is opened Transfer of embedded macros after template is opened, BJH Word VBA 9 12-08-2016 05:11 AM
Enabling Macros automatically when document is opened How to automatically enable the macros upon opening a file with macros? laurieli Office 7 01-17-2016 08:56 AM
How to automatically enable macros upon opening the Word? laurieli Word VBA 2 12-22-2015 02:46 PM
Enabling Macros automatically when document is opened Laptop only automatically indents opened documents mechalloy Word 10 08-25-2012 10:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:09 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