Necesito una planilla de excel que se pueda llenar a traves de un formulario y de esta manera evitar errores en la carga de datos. La planilla tiene que tener las siguientes lineas o columnas : NOMBRE, APELLIDO, DNI, EDAD, TELEFONO, DIRECCION, EMAIL, GRUPO FAMILIAR, NIVEL EDUCATIVO, EXPERIENCIA LABORAL, HABILIDADES, PREFERENCIA LABORAL, DISPONIBILIDAD HORARIA, FOTO y ID (este ultimo que se genera a través de la primera letra del nombre + la primera letra del apellido + las primeras 5 cifras del dni) La idea es poder buscar por cualquiera de los siguientes datos: NIVEL EDUCATIVO, EXPERIENCIA LABORAL, HABILIDADES, PREFERENCIA LABORAL, DISPONIBILIDAD HORARIA o ID. Y me muestre los que apliquen y poder eleguir yo quien es el mejor postulante. Una vez elegido quiero poder poner el ID y que se complete un pequeño CURRICULUM, que se pueda imprimir y guardar como PDF, para poder compartir por whatsapp. A su vez necesito que lleve una estadistica de las personas que se le ofrecio trabajo, lo recibio y o finalizo. Para poder hacer un seguimiento del empleado y de la satisfaccion del cliente (ejemplo 5 estrellas y o sugerencias). Tambien requiero poder enviar un deslinde de responsabilidad de parte de la institución (En este caso la Iglesia) que sea imprimible para firmar y se pueda mandar por whatsapp y tambien firmar de manera digital. Esto se esta armando con la colaboración de abogados locales. Se les facilitara el documento legal. La iniciativa nacio en una villa muy humilde en la provincia de San Juan donde desde la iglesia se anotan los obreros con sus oficios y habilidades y tratamos de ubicarlos con los trabajos. No tengo plazos fijos para esta entrega. Le comparto una serie de intento de realizar la planilla sin exito. No tengo preferencia de como lo trabaje si que no la puedan dañar ya que la gente que se va a encargar de cargar los datos no tiene muchos conocimientos. Y poder tener acceso para usuario o administrador, es decir una persona que cargue y use y otra persona que pueda eliminar datos o modificarlos.
implement the above by excel script
Assistant
User
write in english
Assistant
Crear una solución que abarque todo lo que necesitas es un proyecto complejo, pero podemos dividirlo en partes clave para implementar la funcionalidad en Microsoft Excel utilizando scripts. A continuación, te proporcionaré un plan paso a paso para implementar tu solicitud:
Formulario para ingreso de datos: Creamos una hoja de Excel donde, mediante un formulario o una interfaz, se recopilen datos como "Nombre", "Apellido", etc. Automáticamente se generará el ID según tus requerimientos. Dicha hoja evitará errores de ingreso.
Búsqueda de datos: Agregamos botones o cuadros para realizar búsquedas según criterios (por nivel educativo, habilidades, preferencia laboral, etc.).
Resumen de postulantes: Creamos otra sección donde, al ingresar un ID, obtengas una plantilla de Currículum para imprimir y poder compartir en PDF.
Seguimiento estadístico: Creamos una hoja para registrar información estadística sobre los resultados de las contrataciones y el seguimiento del empleado y/o cliente.
Deslinde de responsabilidad: Incorporamos la posibilidad de generar un deslinde de responsabilidad con los datos recopilados.
Implementación en Excel:
Aquí te proporcionaré secciones de un script de Excel para lograr una parte del sistema que necesitas (específicamente con Office Scripts en Excel). Los pasos más complejos, como exportar a PDF e interfaz para usuarios, pueden lograrse con Macros (VBA) o complementos, pero vamos con algo funcional en Excel Scripts.
Paso 1: Crear ID automático
Abre tu libro de Excel y haz lo siguiente:
Crea una hoja llamada Formulario.
Agrega columnas con los encabezados:
Nombre, Apellido, DNI, Edad, Teléfono, Dirección, Email, Grupo Familiar, Nivel Educativo, Experiencia Laboral, Habilidades, Preferencia Laboral, Disponibilidad Horaria, Foto, ID.
Abre el editor de Scripts (Automate → New Script) y usa el siguiente código:
typescript
function main(workbook: ExcelScript.Workbook) {
const sheet = workbook.getWorksheet("Formulario");
const lastRow = sheet.getUsedRange(true).getLastRowIndex();
// Generar ID automático basado en Nombre, Apellido y DNI
for (let row = 2; row <= lastRow + 1; row++) {
const nombre = sheet.getCell(row, 0).getText(); // Columna Nombre
const apellido = sheet.getCell(row, 1).getText(); // Columna Apellido
const dni = sheet.getCell(row, 2).getText(); // Columna DNI
if (nombre && apellido && dni) {
// Generar ID
const id = `${nombre[0]}${apellido[0]}${dni.slice(0, 5)}`;
sheet.getCell(row, 14).setValue(id); // Columna ID
}
}
}
Ejecuta este script cuando ingreses datos en el formulario y asegurará que el ID se genere automáticamente.
Paso 2: Búsqueda de datos
Para buscar registros específicos (nivel educativo, habilidades, etc.), podemos usar un filtro avanzado incorporado o un script para filtrar registros en otra hoja.
Crea una hoja llamada Busqueda.
Incluye un formulario con campos para búsqueda (por ejemplo: Nivel Educativo, Experiencia Laboral, etc.).
Usa el siguiente código para copiar registros coincidentes a la hoja Resultados:
typescript
function main(workbook: ExcelScript.Workbook) {
const sourceSheet = workbook.getWorksheet("Formulario");
const resultSheet = workbook.getWorksheet("Resultados");
// Datos de búsqueda (completa lo necesario en la hoja "Busqueda")
const nivelEducativo = workbook.getWorksheet("Busqueda").getCell(1, 0).getText();
// Limpia resultados antiguos
resultSheet.getRange("A2:Z1000").clear();
const lastRow = sourceSheet.getUsedRange(true).getLastRowIndex();
let resultRow = 1;
for (let row = 1; row <= lastRow; row++) {
const nivel = sourceSheet.getCell(row, 8).getText(); // Columna Nivel Educativo
if (nivel.includes(nivelEducativo)) {
// Copia la fila en los Resultados
sourceSheet.getRange(`A${row + 1}:O${row + 1}`).copyTo(resultSheet.getRange(`A${resultRow + 1}`));
resultRow++;
}
}
}
Paso 3: Generar currículum y exportar como PDF
Para esto, prepara una hoja llamada Curriculum con el formato deseado (por ejemplo: usando celdas para mostrar Nombre, Apellido, Habilidades, etc.). Luego:
Usa el siguiente código para completar el currículum al ingresar un ID:
typescript
function main(workbook: ExcelScript.Workbook) {
const sourceSheet = workbook.getWorksheet("Formulario");
const targetSheet = workbook.getWorksheet("Curriculum");
const id = workbook.getWorksheet("Curriculum").getCell(0, 1).getText(); // ID ingresado
const lastRow = sourceSheet.getUsedRange(true).getLastRowIndex();
for (let row = 2; row <= lastRow; row++) {
const recordID = sourceSheet.getCell(row, 14).getText(); // Columna ID
if (recordID === id) {
// Copiar valores al currículum
targetSheet.getCell(1, 1).setValue(sourceSheet.getCell(row, 0).getValue()); // Nombre
targetSheet.getCell(2, 1).setValue(sourceSheet.getCell(row, 1).getValue()); // Apellido
targetSheet.getCell(3, 1).setValue(sourceSheet.getCell(row, 8).getValue()); // Habilidades
// Agrega otros campos según sea necesario
}
}
}
Desde la interfaz de Excel, selecciona Archivo → Guardar como PDF para exportarlo.
Paso 4: Seguimiento estadístico
Crea una hoja llamada Seguimiento donde puedes llevar estas estadísticas manualmente u obtener datos calculados automáticamente.
Consideraciones adicionales:
La impresión de firmas digitales/deslindes de responsabilidad puede requerir intervención manual.
Es posible agregar más lógica usando VBA para manejar ventanas de usuario más avanzadas.
¿Te gustaría un detalle sobre alguna de las secciones o un enfoque alternativo? ¡Estoy aquí para ayudarte!
Creating a solution that fulfills all your requirements is a comprehensive project, but we can break it down into key parts to implement the functionality using Microsoft Excel with scripts. Below, I’ll guide you through a step-by-step plan to create the requested solution with Excel’s automation tools.
Key Features Breakdown
Data Entry Form: Create a form within an Excel worksheet to collect data such as "Name," "Last Name," etc. The ID will be generated automatically based on the specifications you mentioned.
Search Functionality: Add buttons or filters to search by criteria like educational level, work experience, etc.
Applicant Resume: Create a section where, by entering the generated ID, you can prepare a formatted resume template for printing or exporting to PDF.
Tracking and Statistics: Maintain another worksheet to track job placement status, job completion, and client/employee satisfaction ratings (e.g., using a 5-star rating system).
Responsibility Waiver: Include a printable waiver of responsibility form with user data, and allow for digital signing.
Here, I'll provide Excel-specific instructions along with Office Scripts or VBA (Excel macros) to help you achieve your requirements.
Step 1: Automatic ID Generation
Open a new Excel workbook.
Create a worksheet named Form with the following columns:
Name, Last Name, DNI, Age, Phone, Address, Email, Family Group, Education Level, Work Experience, Skills, Job Preference, Availability, Photo, ID.
Open the Automate tab in Excel and create a new script. Use the following Office Script to auto-generate the ID:
typescript
function main(workbook: ExcelScript.Workbook) {
// Get the "Form" worksheet
const sheet = workbook.getWorksheet("Form");
const lastRow = sheet.getUsedRange(true).getLastRowIndex();
for (let row = 2; row <= lastRow + 1; row++) {
// Retrieve Name, Last Name, and DNI
const name = sheet.getCell(row, 0).getText(); // Column A: Name
const lastName = sheet.getCell(row, 1).getText(); // Column B: Last Name
const dni = sheet.getCell(row, 2).getText(); // Column C: DNI
if (name && lastName && dni) {
// Generate ID
const id = `${name[0]}${lastName[0]}${dni.slice(0, 5)}`;
sheet.getCell(row, 14).setValue(id); // Column O: ID
}
}
}
Run this script after entering new data in the Form worksheet to automatically calculate the ID column.
Step 2: Search for Records
To search for candidates by criteria (e.g., education level, skills, etc.), you can either use Excel's built-in filtering functionality or write a script to copy matching rows to another worksheet.
Create a worksheet named Search.
Add fields or a form to allow filtering (e.g., "Education Level," "Skills," etc.).
Create another worksheet called Results to display the filtered records.
Use this script to search and display records based on the criteria entered in Search:
typescript
function main(workbook: ExcelScript.Workbook) {
const formSheet = workbook.getWorksheet("Form");
const searchSheet = workbook.getWorksheet("Search");
const resultsSheet = workbook.getWorksheet("Results");
// Get the search criteria
const educationLevel = searchSheet.getCell(1, 0).getText(); // Specify cell for Education Level input
// Clear previous results
resultsSheet.getRange("A2:Z1000").clear();
const lastRow = formSheet.getUsedRange(true).getLastRowIndex();
let resultRow = 1;
for (let row = 1; row <= lastRow; row++) {
const currentEducation = formSheet.getCell(row, 8).getText(); // Column I: Education Level
if (currentEducation.includes(educationLevel)) {
// Copy the matching row to Results worksheet
formSheet.getRange(`A${row + 1}:O${row + 1}`).copyTo(resultsSheet.getRange(`A${resultRow + 1}`));
resultRow++;
}
}
}
Run this script to populate the Results worksheet with only the records matching your search criteria.
Step 3: Generate Resume Template
Create a worksheet called Resume and design your resume format using fixed cells for data like name, skills, job preferences, etc.
Create an input cell for the ID (e.g., Cell B1 in the Resume worksheet).
Write a script to populate the resume format using the ID provided. Here's an example:
typescript
function main(workbook: ExcelScript.Workbook) {
const formSheet = workbook.getWorksheet("Form");
const resumeSheet = workbook.getWorksheet("Resume");
const enteredID = resumeSheet.getCell(0, 1).getText(); // Cell B1: Input ID
const lastRow = formSheet.getUsedRange(true).getLastRowIndex();
for (let row = 2; row <= lastRow; row++) {
const recordID = formSheet.getCell(row, 14).getText(); // Column O: ID
if (recordID === enteredID) {
// Populate the Resume worksheet
resumeSheet.getCell(1, 1).setValue(formSheet.getCell(row, 0).getValue()); // Name
resumeSheet.getCell(2, 1).setValue(formSheet.getCell(row, 1).getValue()); // Last Name
resumeSheet.getCell(3, 1).setValue(formSheet.getCell(row, 8).getValue()); // Skills
// Add additional fields as needed
}
}
}
After generating, you can use Excel's File → Save As → PDF option to export the completed resume to a PDF format.
Step 4: Employee/Client Tracking
To track job placement and satisfaction:
Create a worksheet called Tracking.
Include columns like Employee ID, Job Placement Date, Job Completed (Yes/No), Client Satisfaction (Stars), Feedback.
Use manual data entry or link the information from other sheets through scripts.
Step 5: Responsibility Waiver
Create a template for the waiver in another worksheet or external Word document. Populate the data (e.g., Name, ID) based on the entered ID, and then save the file for printing or sharing via WhatsApp.
Additional Recommendations
- Simplified User Interface: If the users of the workbook have limited technical knowledge, consider adding buttons tied to each script via Excel macros for easy operation.
- Protect Data: Lock certain sheets (e.g., Form, Tracking) to avoid accidental edits, allowing only specific users (Admins) to modify or remove data.
Would you like further examples, or should I expand on exporting to PDF, protecting the workbook, or adding user-specific controls? Let me know how I can assist further!