AW: Da fehlt ein BackSlash \
19.01.2010 14:27:23
Helge
Will irgendwie nicht ! Hier mal den ganz QT :
Private Sub txt1_Change()
Dim varRes As Variant
varRes = Application.Match(txt1, Sheets("Product list").Range("A:A"), 0)
If IsNumeric(varRes) Then
txt2 = Application.index(Sheets("Product list").Range("D:D"), varRes)
Else
txt2 = ""
End If
If IsNumeric(varRes) Then
txt3 = Application.index(Sheets("Product list").Range("E:E"), varRes)
Else
txt3 = ""
End If
varRes = Application.Match(txt1, Sheets("Product list").Range("A:A"), 0)
If IsNumeric(varRes) Then
txt4 = Application.index(Sheets("Product list").Range("F:F"), varRes)
Else
txt4 = ""
End If
If IsNumeric(txt3.Value) And IsNumeric(txt4.Value) Then
txt13.Value = txt3.Value - txt4.Value
Else
txt13.Value = ""
End If
Dim Bildname As String
On Error GoTo Fehler
Bildname = txt1.Text & ".JPG"
Me.Image2.Picture = LoadPicture("C:\Documents and Settings\user\Desktop\TEST INVENTORY")
Me.Image2.Picture = LoadPicture(ActiveWorkbook.Path & "\" & Bildname)
Exit Sub
Fehler:
On Error GoTo 0
Me.Image2.Picture = LoadPicture(ActiveWorkbook.Path & "\" & "1.JPG")
End Sub
Duerfte sich aber eigentlich nicht beeintraechtigen und werde es mal in einer leeren Datei versuchen. Danke fuer die Hilfen !