Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disable Automatically Update?

    I need to disable the Automatically Update feature of Insert/Date and Time so users can't insert date codes with this method. Any ideas? The only thing I can come up with is running a macro afterwards to find the field and perform Ctrl/Shift/F9 to convert the field to text. Thanks.

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Automatically Update?

    Searcher,

    Can you use an Autonew macro to insert today's date in a document at a location?

    I work with a lot of forms, which are protected. For those, I have a form fields which does not allow fill-in. My Autonew unprotects the document, updates the field, and protects again. But you could also insert a value in a bookmarked location.

    Would that do what you are wanting to do?
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Disable Automatically Update?

    Have a look at this macro and work out if this is what you want. It is not disabling the ability to tick the box but it is over-riding it with a message if it is ticked. If you use this macro name it will hijack the menu item.
    <pre>Sub InsertDateTime()
    With Dialogs(wdDialogInsertDateTime)
    If .Display = -1 Then
    If .InsertAsField Then
    MsgBox "Bad Luck, you're getting a non-updating entry"
    .InsertAsField = False
    End If
    .Execute
    End If
    End With
    End Sub</pre>

    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    Star Lounger
    Join Date
    Jan 2001
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Automatically Update?

    The code is great. Thanks. The confusion for users might be that it seems to leave the box ticked, even after deselecting it and going back in. Ideally, I would like to display the checkbox as unticked when users go back in. Any other ideas? This was very helpful.

  5. #5
    Star Lounger
    Join Date
    Jan 2001
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Automatically Update?

    I think I answered my own question. I added another .InsertAsField = False outside the If statement:

    Sub InsertDateTime()
    'Disable Automatically Update in Insert/Date & Time
    With Dialogs(wdDialogInsertDateTime)
    .InsertAsField = False
    If .Display = -1 Then
    If .InsertAsField Then
    MsgBox "Automatically Update is disabled."
    .InsertAsField = False
    End If
    .Execute
    End If
    End With
    End Sub

    This is my first time posting a question, and I'm very impressed by the response time and the quality of the responses. What a great resource! Thanks again.

Posting Permissions

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