Consulting

Results 1 to 4 of 4

Thread: Prevent Opening Another Document?

  1. #1
    VBAX Regular
    Joined
    May 2009
    Posts
    28
    Location

    Prevent Opening Another Document?

    Is it possible to prevent a user from opening another document or creating a new one while s/he is editing?

  2. #2
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Yes, for your average-type user this can be done fairly easily. However, any really knowledgeable Word user could get around it.

    Why do you want to do this? In general, I am opposed to restrictive changes To Word. What is the business case for such a restrictive condition?

  3. #3
    VBAX Regular
    Joined
    May 2009
    Posts
    28
    Location
    I have an automation process running. I want to expose the current document for the user to proof and modify if needed before resuming automation. Opening other documents could confuse or derail the automation task. Also, there is no need for other documents at that time.

    I actually succeeded in this task by implementing an Eventhandler using the ApplicationEvents2 interface. I can't prevent the document from opening but I can notify the user and close the extra document immediately so the automation process is able to run to conclusion.

    Thanks for your response!

  4. #4
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    It may help others if you posted your solution using an EventHandler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •