Announcement

Collapse
No announcement yet.

Unconfigured Ad Widget

Collapse

Inconsistent Events

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inconsistent Events

    I can not get the Document_Open, or the Document Close to trigger. These subroutines executed fine for a while, then just stopped working.

    I have both placed the code in the Normal and Project, ThisDocument. I should at least get the message box popping up when I start the program.

    Any suggestions, comments, of links to other resources.... Is there some code I am missing, or is WORD VBA simply this "buggy" / inconsistent.

    Code as follows:

    Option Explicit

    Private Sub Document_Open()
    MsgBox "start"
    Call AddMenu

    End Sub

    Private Sub Document_Close()
    ' * * * * * * * * * * * * * * * * * * * * * * * * * *
    ' Remove objects specific to this workbook.
    ' * * * * * * * * * * * * * * * * * * * * * * * * * *

    Application.DisplayAlerts = False
    Application.ScreenUpdating = False
    Call DeleteMenu

    End Sub

  • #2
    It was me... the macro security somewhere was changed to high. Start macro was never executing.... change back to medium, and runs like a champ.

    Comment


    • #3
      Hee hee.
      Don'tcha HATE THAT!!??

      Comment

      Trending

      Collapse

      There are no results that meet this criteria.

      Working...
      X