G
Guest
Hello everyone,
I have a function:
Public Function myprint()
Debug.Print "hello, hello"
End Function
When I enter "?myprint()" in the Immediate Pane, I got an error message
saying:"Expecting varialbe or procedure, not module". If I enter
Debug.Print "hello, hello"
in the Immediate Pane and press enter key, I will get "hello, hello", the
result of the debug.pring, which is what I want. But I would like to run the
function or procedure because I have program that has more code and I want to
trace the result of each line.
Any idea? What did I do wrong?
Thanks.
I have a function:
Public Function myprint()
Debug.Print "hello, hello"
End Function
When I enter "?myprint()" in the Immediate Pane, I got an error message
saying:"Expecting varialbe or procedure, not module". If I enter
Debug.Print "hello, hello"
in the Immediate Pane and press enter key, I will get "hello, hello", the
result of the debug.pring, which is what I want. But I would like to run the
function or procedure because I have program that has more code and I want to
trace the result of each line.
Any idea? What did I do wrong?
Thanks.