mugwug
10-12-2010, 10:08 PM
Hi, I have the followng code in Excel 2003 VBA.
Both parts reside in 1 Form.
It calls ZZ_FigureCheck and passes to arguments to it.
It works as expected.
I wish to call it from a different form (also from a txt_change)
Is there a way?
Private Sub txtTransAmount_Change()
Call ZZ_FigureCheck(txtTransAmount.Value, txtTransAmount.BackColor)
End Sub
Public Sub ZZ_FigureCheck(Value, BackColour)
'Code
End Sub
Both parts reside in 1 Form.
It calls ZZ_FigureCheck and passes to arguments to it.
It works as expected.
I wish to call it from a different form (also from a txt_change)
Is there a way?
Private Sub txtTransAmount_Change()
Call ZZ_FigureCheck(txtTransAmount.Value, txtTransAmount.BackColor)
End Sub
Public Sub ZZ_FigureCheck(Value, BackColour)
'Code
End Sub