VBA Code nicht ***_Exit sondern...
amintire
benötige mal eure Hilfe und zwar bei dem folgenden Code, wird das Bild geladen bzw erscheint erst wenn man TextBox20 verlässt.
Möchte aber des so haben, sobald was in TextBox20 draufsteht soll das Bild geladen werden.
Danke für Eure Hilfe.
Gruß Amina
Private Sub TextBox20_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim sPath As String
sPath = "H:\Test\"
If Dir(sPath & TextBox20 & ".jpg") "" Then
Image1.Picture = LoadPicture(sPath & TextBox20 & ".jpg")
TextBox1.Text = sPath & TextBox20.Text & ".jpg"
Repaint
End If
End Sub