R
RalphInBoise
Hello to all,
In the code handler for my form object’s button click event, I want to
use a subroutine from a class module. But when I go to declare it for
use in the (General) section of the new code object's (Declarations),
somehow, the VBA Editor seems to think that I want to redefine that
existing subroutine in the new code object's namespace.
The desired subroutine is perfect, and I do NOT want to re-define it, so
how do I declare it for use?
And without a declaration, my compiler keeps giving me a message box
saying, "Sub or Function not defined” when I use the keyword, “Call”
prior to the sub’s name. Or without a declaration and using just the
sub’s name without the keyword, “Call”, a message box saying, “Compiler
error: Syntax error”.
Any help would be appreciated.
TIA,
Ralph in Boise
In the code handler for my form object’s button click event, I want to
use a subroutine from a class module. But when I go to declare it for
use in the (General) section of the new code object's (Declarations),
somehow, the VBA Editor seems to think that I want to redefine that
existing subroutine in the new code object's namespace.
The desired subroutine is perfect, and I do NOT want to re-define it, so
how do I declare it for use?
And without a declaration, my compiler keeps giving me a message box
saying, "Sub or Function not defined” when I use the keyword, “Call”
prior to the sub’s name. Or without a declaration and using just the
sub’s name without the keyword, “Call”, a message box saying, “Compiler
error: Syntax error”.
Any help would be appreciated.
TIA,
Ralph in Boise