J
joep3
I'm trying to check a formfield on its contents and message box to the user
about no entry and not allow printing. I've found the code that allows
msgboxing from the
AppThatLooksInsideThisEventHandler_DocumentBeforePrint(ByVal Doc As
Document, Cancel As Boolean) routine in the class event handler. Where do I
place the code to check the formfield? I tired to run this code from a class
module within the document itself, which I would rather do, but it doesn't
work. Can I refer to the class module in a document module or do I create a
new class module in the documemt I want to check? Also, I want to cancel the
printing if the contents are not filled in. Can all of this be done in one
document without needing to addin an event handler dot?
about no entry and not allow printing. I've found the code that allows
msgboxing from the
AppThatLooksInsideThisEventHandler_DocumentBeforePrint(ByVal Doc As
Document, Cancel As Boolean) routine in the class event handler. Where do I
place the code to check the formfield? I tired to run this code from a class
module within the document itself, which I would rather do, but it doesn't
work. Can I refer to the class module in a document module or do I create a
new class module in the documemt I want to check? Also, I want to cancel the
printing if the contents are not filled in. Can all of this be done in one
document without needing to addin an event handler dot?