Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Location
    Grand Rapids, Michigan, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We stopped purchasing pre-printed letterhead for our attorneys years ago, but recently Marketing decided to change the font used on business cards and letterhead. Our secretaries and attorneys have decided that they're going to change the font back to the old because they like it better. So we are now going to password protect that part of the template but I have one snag. The header for the following pages is part of section 1 so is also protected. I do need them to be able to edit that header. I've worked out the code for editing and for re-protecting it when they close the header using the Close button on the Header/Footer tab (or if they use ALT+SHIFT+C). However, I know that some of our users double-click in the document to close headers and I can't seem to figure out that command name to control that. Any ideas?

    Thanks for any help you can give me!
    Julie

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    I think the only way to intercept this is to use the WindowBeforeDoubleClick event of the Application object.

    See WindowBeforeDoubleClick Event and Using Events with the Application Object (these help subjects can also be found in the built-in Word VBA help).


  3. #3
    New Lounger
    Join Date
    Jan 2001
    Location
    Grand Rapids, Michigan, USA
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! I'll give that a try. In looking for this I've found a variety of methods that work for closing Headers

    Quote Originally Posted by HansV View Post
    I think the only way to intercept this is to use the WindowBeforeDoubleClick event of the Application object.

    See WindowBeforeDoubleClick Event and Using Events with the Application Object (these help subjects can also be found in the built-in Word VBA help).

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by JulieLong View Post
    Thanks! I'll give that a try. In looking for this I've found a variety of methods that work for closing Headers
    You should be able to catch every single thing that moves the insertion point out of a header using the WindowSelectionChange Event.

    Be very careful to have as little code as possible as this can cause performance problems, since it will run for every use of an arrow key and every time the mouse is used to change the selection.

Posting Permissions

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