Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2018, 07:37 AM
ajwilliams77 ajwilliams77 is offline Locking word to run macro Windows 7 32bit Locking word to run macro Office 2010 32bit
Novice
Locking word to run macro
 
Join Date: Jul 2018
Posts: 3
ajwilliams77 is on a distinguished road
Default Locking word to run macro

Hi,



I am new to VBA and trying my best to learn "on the job". I have managed to create a simple macro that adds logos and watermarks and save to a file location which is working correctly. However, if there is more than one word document open and they change focus to the other document while the macro is running, the code runs against the document now in focus (which is not what we want).

Is there a way to lock word while the macro is being run in order to prevent the user from selecting a different document?

Many thanks,

Andrew
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking word to run macro Word Tables and Locking Text robertj Word 8 08-19-2015 03:21 PM
Locking word to run macro Locking Text Box Position - Word Mac 2011 citizenzen Word 3 02-01-2013 12:24 PM
Locking word to run macro Locking settings on word Man Word 1 03-27-2012 07:32 AM
locking out word joe Word 0 11-19-2009 02:09 AM
Locking a Word Document Coach_Patrick Word 1 11-06-2008 12:00 PM

Other Forums: Access Forums

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