How to get a macro running as long as document is active

Hello everyone,

i've written a macro for our company to automatically draw wires.

This macro is located at global macros, because any of our drawres has to use it.

Now i'm at a point where my vba-knowledge isn't enough anymore.

I want to get some things checked as long as a document is open.

For example i want to recognize the "pagechange" event.

There are my first 2 problems.

Where and how do i have to call a macro (Document_open) in Global marcos and why does the existing code "document.pagechange" get me to an runtimerror 91?

I hope someone is able to help me with this.

Tanks in Advance from Germany

5P1K3