T
TimvG
I have a document (.dotm) with a code module, Toggling, with macros in
the module. However Word doesn't seem to know that the macros are
there.
When I try to fire one of the macros, using a Macrobutton field,
nothing at all happens.
When I open the Macro dialog (Alt-F8) no macros from that file show up
(though other macros are visible). When I open the Organizer, the
module Toggling is visible in Macro Project Items for the document.
When I open the Visual Basic Editor, open Toggling and run a macro
from there (F5), the macro works fine.
When I create a new macro outside Toggling, it works fine. But when I
copy it into Toggling, it is no longer accessible.
It seems that Word knows that the code module is there, but doesn't
know that the macros are inside it.
The only probably-important clue I can think of is that the Toggling
module was created in the document by importing it from a file using
ActiveDocument.VBProject.VBComponents.Import
Any suggestions most appreciated!
the module. However Word doesn't seem to know that the macros are
there.
When I try to fire one of the macros, using a Macrobutton field,
nothing at all happens.
When I open the Macro dialog (Alt-F8) no macros from that file show up
(though other macros are visible). When I open the Organizer, the
module Toggling is visible in Macro Project Items for the document.
When I open the Visual Basic Editor, open Toggling and run a macro
from there (F5), the macro works fine.
When I create a new macro outside Toggling, it works fine. But when I
copy it into Toggling, it is no longer accessible.
It seems that Word knows that the code module is there, but doesn't
know that the macros are inside it.
The only probably-important clue I can think of is that the Toggling
module was created in the document by importing it from a file using
ActiveDocument.VBProject.VBComponents.Import
Any suggestions most appreciated!