Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2017, 12:21 PM
macropod's Avatar
macropod macropod is offline Code to update macros automatically in startup folder Windows 7 64bit Code to update macros automatically in startup folder Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
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

Unless your colleagues configure their Word installations to allow trusted access to the VBA project model - something that is dangerous to have as a default state - your scheme won't work.



Instead, if your updating code that belongs in a template they're to use, simply roll out the new template, preferably by having the users concerned joined to a group whose group templates folder is one you can update. That way, they don't have to do anything.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 01-10-2017, 12:47 PM
dwirony dwirony is offline Code to update macros automatically in startup folder Windows 7 64bit Code to update macros automatically in startup folder Office 2003
Advanced Beginner
Code to update macros automatically in startup folder
 
Join Date: Oct 2016
Posts: 49
dwirony will become famous soon enough
Default

Hi Paul,

So about half of my code is held in a group folder that I can update there, so that's good... Unfortunately, the other half is held within userforms that really needs to be updated within their STARTUP folders.

I figured that by using a prompt in a userform that they initiate themselves (by actually going to macros -> view -> run, not using Auto_Open) I'd be able to give whatever privileges are needed to make the update - Is this not possible?

Worst come to worst, I'd figure I can at least have the code close out of Microsoft Word and open the folder containing the "newcode.dotm", so all they'd have to do is copy it and drag it to their STARTUP folder again. Do you think this is the best, tangible solution?

Perhaps the code can open 2 folders side by side, one containing the new code, the other containing the STARTUP folder, so all they have to do is drag and drop?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to update macros automatically in startup folder VBA Code to Access Building Block Template in Word 2013 Startup folder rdross51 Word VBA 2 06-01-2016 07:05 PM
Code to update macros automatically in startup folder How to automatically enable the macros upon opening a file with macros? laurieli Office 7 01-17-2016 08:56 AM
How to constantly and automatically copy the contacts from a shared folder to my private folder? Paulo Outlook 0 08-16-2015 12:06 PM
Code to update macros automatically in startup folder Help with macros, what's wrong with my code?? cc.caroline15 Excel Programming 6 01-12-2015 10:04 PM
Office Startup folder not default trusted location - shortcut Charles Kenyon Word VBA 0 08-27-2012 09:36 AM

Other Forums: Access Forums

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