G
Guest
i want to change the default behaviour of the word commandbars. i can
call a macro within the document by using the following line
obWDApp.CommandBars("Edit").Controls("Cut").OnAction = "MyCut"
the above line calls the macro "MyCut" inside the document. I want to
call the function MySubCut instead which is defined in the COM dll itself.
Public Sub MySubCut
MsgBox "MySubCut"
End Sub
call a macro within the document by using the following line
obWDApp.CommandBars("Edit").Controls("Cut").OnAction = "MyCut"
the above line calls the macro "MyCut" inside the document. I want to
call the function MySubCut instead which is defined in the COM dll itself.
Public Sub MySubCut
MsgBox "MySubCut"
End Sub