• Disable Automatically Update?

    Author
    Topic
    #352383

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #512316

      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?

    • #512347

      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.

      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
      • #512434

        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.

        • #512442

          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.

    Viewing 1 reply thread
    Reply To: Reply #512316 in Disable Automatically Update?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel