This document contains VBA code for receiving training data input from users, saving the data to a workbook, and sorting or generating a report on the data. The code defines variables to store course, date, participant, department, company, and cost data input by users. It then copies and pastes values to cells, saves the workbook, and includes code for sorting or reporting on the data.
3. Sub Recepcao()'Macro Recep巽達o de DadosDimVarCurso As StringDimVarData As DateDimVarParticipante As StringDimVarDepto As StringDimVarEmpresa As StringDimVarCusto As SingleVarCurso = Application.InputBox("Entre o Curso:", , , , , , 2) 'O Valor 2 no InputBox para dados AlfanumericosVarData = Application.InputBox("Entre a Data:", , , , , , 1) 'O Valor 1 no InputBox para dados numericosVarParticipante = Application.InputBox("Entre o Participante:", , , , , , 2)VarDepto = Application.InputBox("Entre o Departamento:", , , , , , 2)VarEmpresa = Application.InputBox("Entre a Empresa:", , , , , , 2)VarCusto = Application.InputBox("Entre o Custo:", , , , , , 1)