You are using the variable m at two places in the hw_SIPChanged routine and in the Mclose_Click , Mnext_Click routines!
Are you shure that the variable m in SIPChanged is same as the other one you use in the Mclose_Click and Mnext_Click routines.
You should use another variable name in routine SIPChanged.
When you use local variables in subroutines, I suggest you to declare these with a Dim keyword at the beginning of the routine like.
Sub hw_SIPChanged
Dim mm, h
Best regards.
__________________
Klaus
Switzerland
|