bonjour,
j'ai encore un petit probleme avec mon bouton "remise a zero"
j'ai saisie un code :
Private Sub btremisezero_Click()
Dim Msg, Style, Title, Response
Msg = " Avez vous sauvegarder!! CLIQUEZ OUI SINON CLIQUEZ NON !! "
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = " quitter "
Response = MsgBox(Msg, Style, Title)
If Response = vbNo Then
Unload Me
Sheets("tickets").Range("A2:I120").ClearContents
Else
FrmCaisse.LablCompteur.Caption = FrmCaisse.LablCompteur.Caption + 1
LstTicket.Clear
Textquant.Value = ""
Textrecu.Value = ""
LblTotal.Caption = ""
Lblrendre.Caption = ""
End If
End Sub
quand je saisie dans mon code sans les Lbl cela marche nickel
mais des que je rentre Lbl total ou lbl rendre cela plante mon aplication.
je pense avoir mis pourtant le bon code
quelqu'un peut t'il m'aider
merci d'avance
j'ai encore un petit probleme avec mon bouton "remise a zero"
j'ai saisie un code :
Private Sub btremisezero_Click()
Dim Msg, Style, Title, Response
Msg = " Avez vous sauvegarder!! CLIQUEZ OUI SINON CLIQUEZ NON !! "
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = " quitter "
Response = MsgBox(Msg, Style, Title)
If Response = vbNo Then
Unload Me
Sheets("tickets").Range("A2:I120").ClearContents
Else
FrmCaisse.LablCompteur.Caption = FrmCaisse.LablCompteur.Caption + 1
LstTicket.Clear
Textquant.Value = ""
Textrecu.Value = ""
LblTotal.Caption = ""
Lblrendre.Caption = ""
End If
End Sub
quand je saisie dans mon code sans les Lbl cela marche nickel
mais des que je rentre Lbl total ou lbl rendre cela plante mon aplication.
je pense avoir mis pourtant le bon code
quelqu'un peut t'il m'aider
merci d'avance