Label.caption
03.01.2019 17:53:48
Marcel
Ich habe ein banales Problem, jedoch brauche ich eure Hilfe. Als Variablen (Public) habe ich "Stock" und "Einheit". Ich möglich nun ein Label auf einer Userform wie folgt benennen:
Stock & " " & Einheit '1000 Stück Lagerbestand
Aber irgendwie will Excel das nicht so ganz akzeptieren. Weiss jemand wieso?
Danke im Voraus und viele Grüsse
Marcel
Private Sub cmd_SendSCM_Click()
' Check if mandatory fields are filled out
If UFAktionen.txtStockqty.Value = "" Then
If MsgBox("Please fill out all mandatory fields", vbCritical + vbOKOnly, "Data Check") = _
vbOK Then Exit Sub
End If
If UFAktionen.txtMPR.Value = "" Then
If MsgBox("Please fill out all mandatory fields", vbCritical + vbOKOnly, "Data Check") = _
vbOK Then Exit Sub
End If
Call WriteSCM
If UFAktionen.txtStockqty.Value = "0" Then
ThisWorkbook.Save
Exit Sub
Else
UFAktionen.lblActualStock.Caption = Stock
UFAktionen.lblActualMRP.Caption = MRP
UFAktionen.lblActualStockValue = Format(Stockvalue, "0.00")
Call SaveForENG
Call MailToSCM
End If
End Sub