Ciao a tutti,
vorrei riassumere i dati digitati dall'operatore con message box.
Esempio del dato atteso:
Nel giorno 01/01/2017, io ho effettuato il 1°turno sull'impianto R1 quindi nella riga 3 compilo:
B3 per il numero di pezzi prodotti
C3 per il mio numero operatore
(per il 2° turno sarebbero le celle D3 e E3, etc, etc)
Quindi controllo:
1)che i dati siano SEMPRE compilati entrambi per rispettivo turno
2) Message Box si attiva quando entrambi i campi sono compilati (giorno e turno)
3)e se possibile nella message box aggiungo al numero operatore digitato (C3) il nome dello prelevato nel foglio Legenda ( nel nostro caso operatore 2 Pippo) e poi riassumo il tutto.
In maniera
parziale e statica , io sono arrivato a questo:
Sub Messaggio()
Dim Rst As String Dim Cella As Range
Rst = Rst & "Confermi i seguenti dati? :" & vbLf & vbLf
Rst = Rst & "Operatore:" & " " & Sheets("Anno").Range("C3") & vbLf & vbLf
Rst = Rst & "Sull'impianto:" & " " & Sheets("Anno").Range("B1") & vbLf
Rst = Rst & "Hai prodotto:" & " " & Sheets("Anno").Range("B3") & vbLf & vbLf
Rst = Rst & "Nel turno:" & " " & Sheets("Anno").Range("B2") & vbLf
Rst = Rst & "del giorno:" & " " & Sheets("Anno").Range("A3") & vbLf & vbLf
MsgBox Rst, vbInformation + vbYesNo
End Sub
Grazie in anticipo per l'aiuto.
PS non ho usato Userform per averlo più friendly possibile e comunque che "giri" su excel 2003
[Modificato da BG66 23/03/2017 06:52]
BG66
Excel 2010