Message 1 of 7
Visual Basic Error
Not applicable
02-01-2005
07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have written the following code to work in VB6.0 and at first everything works fine, after saving and re-opening the file I keep getting this error message:
"User-defined type not defined"
This is the code:
Private Sub TextBoxCatPrijs_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
'Staat alleen de invoer van getallen en een aantal noodzakelijke tekens toe
If KeyAscii = 44 Or KeyAscii = 45 Or KeyAscii = 46 Then Exit Sub Else
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0
Beep
Else
End If
End Sub
There are about 20 textboxes to which I want to add this code. Can anyone help me with this problem?
Thanks allready
"User-defined type not defined"
This is the code:
Private Sub TextBoxCatPrijs_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
'Staat alleen de invoer van getallen en een aantal noodzakelijke tekens toe
If KeyAscii = 44 Or KeyAscii = 45 Or KeyAscii = 46 Then Exit Sub Else
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0
Beep
Else
End If
End Sub
There are about 20 textboxes to which I want to add this code. Can anyone help me with this problem?
Thanks allready