Vous êtes sur la page 1sur 226

Trabajo Fin de Grado

Grado en Ingeniera de las Tecnologas Industriales

Desarrollo e Implementacin de Aplicacin


para el Seguimiento Visual de la Produccin

Autor: Miguel Gmez Segura


Tutor: Jos Miguel Len Blanco

Dep. Organizacin Industrial y Gestin de Empresas I


Escuela Tcnica Superior de Ingeniera
Universidad de Sevilla
Sevilla, 2014

ii

Trabajo Fin de Grado


Grado en Ingeniera de las Tecnologas Industriales

Desarrollo e Implementacin de Aplicacin para el


Seguimiento Visual de la Produccin

Autor:

Miguel Gmez Segura

Tutor:

Jos Miguel Len Blanco


Profesor colaborador

Dep. de Organizacin Industrial y Gestin de Empresas I


Escuela Tcnica Superior de Ingeniera
Universidad de Sevilla
Sevilla, 2014

Trabajo Fin de Grado: Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la


Produccin

Autor:

Miguel Gmez Segura

Tutor:

Jos Miguel Len Blanco

El tribunal nombrado para juzgar el Proyecto arriba indicado, compuesto por los siguientes miembros:

Presidente:

Vocales:

Secretario:

Acuerdan otorgarle la calificacin de:

Sevilla, 2014

El Secretario del Tribunal


iv

A mis padres
A mis profesores

Agradecimientos

El presente proyecto ha sido posible gracias a la oportunidad de realizar unas prcticas brindada por Airbus
Defense & Space (Sevilla). Por ello, le estoy muy agradecido. Por otro lado, la aplicacin se hizo con la
inestimable colaboracin de los miembros del Departamento de Lean Manufacturing y del Departamento de
Ingeniera. Su aportacin ha sido muy relevante para que este proyecto culmine con xito.
Esta memoria ha sido redactada con la colaboracin del prof. Jos Miguel Len Blanco, de la Escuela Tcnica
Superior de Ingeniera de nuestra Universidad, a quien doy las gracias por su magnfica ayuda y por los
nimos con los que continuamente me ha alentado.
Agradezco tambin a mis padres todo el apoyo que me han otorgado.
Miguel Gmez Segura
Escuela Tcnica Superior de Ingeniera
Sevilla, 2014

vii

Resumen

El presente proyecto ha sido elaborado en el contexto aeronutico de las instalaciones de la Factora de


Tablada (Sevilla) de Airbus Defense & Space. En el mbito del Departamento de Lean Manufacturing, el objetivo
de este trabajo es el desarrollo y la implementacin de una aplicacin que permita realizar un seguimiento
visual del avance de la produccin, comparando la planificacin de ejecucin de las operaciones con el
proceder real de la produccin.
Este proyecto se ocupa de la primera experiencia en Tablada de un seguimiento de la produccin de estas
caractersticas. A pesar de que la herramienta informtica tiene aplicacin en cualquier rea de la factora, este
trabajo contempla tan solo la implantacin de la aplicacin en el programa aeronutico denominado HTP del
Falcon 7X.
El resultado de este proyecto es doble. Por un lado disear y desarrollar una aplicacin en Microsoft Office Excel
para el seguimiento de la produccin de forma que resulte lo ms visual e intuitiva posible, y por otro llevar a
cabo la puesta en marcha de la experiencia piloto.

ix

Abstract

This project has been produced in the aeronautic context of the facilities of the Factory of Tablada (Seville)
property of Airbus Defense & Space. In the sphere of activity of the Department of Lean Manufacturing, the aim
of this work is to develop and to implement an application that allows to accomplish a visual monitoring of
the progress of the production, comparing the realization-schedule of the operations to the real production
procedure.
The project carries out the first experience of a monitoring of the production with such characteristics.
Although the computer tool is applicable in any area within the factory, this work only consider the
implementation of the programme in an specific area denominated as HTP of Falcon 7X.
The objective of this project is double. On the one hand to design and develop an application in Microsoft Office
Excel to check the evolution of the production in the most visually and intuitive way, and on the other to put
into operation the pilot experience.

xi

ndice

Agradecimientos

vii

Resumen

ix

Abstract

xi

ndice

xii

ndice de Tablas

xv

ndice de Figuras

xviii

Introduccin y objeto del proyecto


1.1. Introduccin
1.2. Objeto del proyecto
1.3. mbito del proyecto

19
19
19
20

Antecedentes
2.1. Airbus Group
2.2. Factora de Tablada
2.3. Lnea de montaje del HTP del Falcon 7X

21
21
22
23

Seguimiento de la produccin como herramienta de Lean Manufacturing


3.1. Origen de Lean Manufacturing
3.2. Visin y principios de Lean Manufacturing.
3.3. Departamento de Lean Manufacturing en Tablada
3.4. Seguimiento de la produccin como herramienta de Lean Manufacturing

26
26
26
28
29

Definicin de la situacin de partida


4.1. La necesidad de Bar-Chart digital
4.1.1. Funcionamiento del Bar-Chart en papel
4.1.2. Inconvenientes del Bar-Chart en papel y necesidad de Bar-Chart digital
4.2. Experiencia piloto en la lnea de montaje HTP del Falcon 7X
4.3. Nuevas herramientas de seguimiento visual de la produccin: Performance Tracker y Control Board
4.4. Aplicacin informtica en el entorno de Microsoft Office Excel

32
32
32
33
33
34
35

Desarrollo de Bar-Chart digital


5.1. Recursos y documentacin
5.2. Diseo y programacin de Bar-Chart y Control Board
5.2.1. Disposicin y estructuracin de la aplicacin
5.2.2. Programacin de Bar-Chart
5.2.2.1 Controles ActiveX
5.2.2.2 Limitaciones de Microsoft Office Excel
5.2.2.3 Programacin de Bar-Chart
5.2.3. Programacin de Control Board
5.3. Conexin entre Bar-Chart y Control Board

37
37
38
38
39
39
40
40
46
48

Periodo de pruebas
6.1. Instrucciones de uso
6.2. Inicializacin de la aplicacin en Fase III y Fase IV
6.3. Dificultades de funcionamiento
6.4. Crtica de la aplicacin

49
49
50
50
51

Conclusiones

53

xii

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

xii

Bibliografa

54

Anexo 1

55

Anexo 2

56

Anexo 3

58

NDICE DE TABLAS
Tabla 5-1 Funcionalidades del Bar-Chart

40

xv

NDICE DE FIGURAS
Figura 2-1. Logo de la nueva divisin Airbus Defense and Space

21

Figura 2-2. FAL del A400M

22

Figura 2-3. Exteriores de la factora de Tablada

22

Figura 2-4. Layout de la factora de Tablada

23

Figura 2-5. Aeronave Falcon 7X en vuelo

23

Figura 2-6. Elemento HTP del Falcon 7X

24

Figura 2-7. Layout del rea de montaje del HTP del Falcon 7X

24

Figura 3-1. Los siete tipos de despilfarros

27

Figura 3-2. Distribucin de actividades en funcin del valor aadido

27

Figura 3-3. Integracin de las tcnicas 5S

28

Figura 3-4. Modelo de un panel SQCDP

30

Figura 3-5. Seguimiento de la produccin mediante Bar-Chart en papel

30

Figura 4-1. Estndar para cumplimentar el Bar-Chart en papel

32

Figura 4-2. Modelo de Bar-Chart

34

Figura 4-3. Modelo de Performance Tracker

35

Figura 4-4. Entorno de programacin de VBA

36

Figura 5-1. Portada del manual de programacin en VBA para MS Excel 2007

37

Figura 5-2. Carpeta en red

38

Figura 5-3. Botones Verde, Rojo y Borrar

41

Figura 5-4. Formulario para crear nuevas incidencias

41

Figura 5-5. Cierre de incidencias

42

Figura 5-6. Hoja Incidencias del Bar-Chart

42

Figura 5-7. Control de calendario

43

Figura 5-8. Adaptacin del Bar-Chart a la hora de llegada del elemento

43

Figura 5-9. Porcentaje de avance por operacin

44

Figura 5-10. Aviso de cierre automtico tras inactividad

44

Figura 5-11. Cierre automtico tras inactividad

44

Figura 5-12. Estado global de la fase

45

Figura 5-13. Estado de las operaciones F, PB, U

45

Figura 5-14. Hoja Control Board Visual con el avance de la produccin

46

Figura 5-15. Histrico de incidencias

47

Figura 5-16. Tabla y grficos dinmicos

47

Figura 6-1. Instrucciones de uso del Bar-Chart digital

49

Figura 6-2. Filas dedicadas a tiempo estndar y tiempo real incurrido en el cronograma

50

Figura 6-3. Cdigos P-N y descripcin de las operaciones

51

xvii

xviii

ndice de Figuras

Figura 6-4. Nueva versin de la hoja Control Board Visual para el seguimiento comparado del avance
de la produccin

52

1 INTRODUCCIN Y OBJETO DEL PROYECTO


Competition is the keen cutting edge of business, always
shaving away at costs.
- Henry Ford -

1.1 Introduccin

n un mundo cada vez ms globalizado, las nuevas tecnologas han permitido la evolucin de un
entorno de elevadsimo dinamismo de mercados. Las empresas han aumentado su competitividad
hasta niveles que hace pocos aos parecan inalcanzables. La supervivencia en el mundo empresarial
supone hoy ms que nunca un verdadero reto, donde buscar y potenciar las ventajas competitivas
individuales es una necesidad.
A su vez, el antiguo modelo de imposicin de productos estandarizados para satisfacer la demanda del cliente
ha quedado obsoleto. Se ha producido una gran sofisticacin de la demanda: la variedad de productos en el
mercado ha aumentado exponencialmente, el cliente exige la mxima calidad y cada vez el nivel de servicio
solicitado es mayor (Porter, 2011). Los consumidores buscan al mismo tiempo grandes prestaciones y mejores
servicios sin que ello se transforme en un incremento del precio final del producto.

Para mantener un alto nivel de competitividad en el mercado y posicionarse respecto a los competidores es
imprescindible un alto nivel de eficiencia y productividad en los procesos de fabricacin, lo que implica
necesariamente optimizar tanto la utilizacin de los recursos como el grado de satisfaccin del cliente. Esta
ltima consecuencia es uno de los axiomas que conforman los cimientos de la filosofa Lean Manufacturing,
constituida por un conjunto de preceptos y tcnicas en donde, precisamente, el cliente es protagonista en la
cadena de produccin y se persigue la eficiencia total.
En otras palabras, Lean intenta producir ms con menos, y cada vez mejor. Tiene por objetivo la eliminacin
del despilfarro de forma continuada mediante la concienciacin y participacin de todas y cada una de los
individuos que componen la empresa. Ello permite fabricar con calidad, segn el plazo estipulado e
incurriendo en bajos costes.

1.2 Objeto del proyecto


El presente proyecto se desarrolla a raz de una beca de prcticas de tres meses de duracin ofrecida por la
compaa Airbus Defense & Space en sus instalaciones de la Factora de Tablada (Sevilla)1. Esta nueva divisin
de la compaa surge como heredera de las antiguas Airbus Military, Astrium y Cassidian, resultado de una
reciente reestructuracin de EADS (European Aerospace, Defense & Space Corporation) (http://www.airbusgroup.com/) [Citado el: 11 de Mayo de 2014].
Como parte del Departamento de Lean Manufacturing, el objetivo del proyecto est en lnea con la ambiciosa
tarea de instaurar la filosofa Lean en todos los niveles de la factora, respondiendo tambin a los principios
bsicos de Airbus Group.
La finalidad del proyecto es desarrollar e implementar una aplicacin informtica que permita la realizacin
de un seguimiento de la produccin ms efectivo y visual. Dada la envergadura del proyecto y las limitaciones
de tiempo para su consecucin, la aplicacin se limitar a un solo programa aeronutico donde se someter a
un periodo de pruebas para ms tarde hacerse extensivo al resto de programas de Tablada.
A continuacin se enumeran los objetivos marcados para este nuevo sistema de gestin visual de la
produccin:
1

Prcticas externas durante un total de 300 horas. Fecha de inicio 27/01/2014 y fecha final 25/04/2014.

19

Introduccin y Objeto del Proyecto

20

Registrar y captar datos en tiempo real sobre la situacin y el grado de avance de cada lnea de
produccin

Comparar la informacin recogida con el plan de produccin estndar y con el grado de avance
esperado en cada momento

Facilitar la toma de decisiones en cuanto a la asignacin de recursos a las tareas segn necesidad

Detectar de forma visual desviaciones de relevancia respecto de la planificacin que puedan


impactar en el resto de la lnea

Sensibilizar a los operarios y al resto de personas implicadas en el proceso productivo de la


importancia de cumplir con el estndar como medio para alcanzar los objetivos fijados a medio y
largo plazo

1.3 mbito del proyecto


La aplicacin se ha diseado, salvo excepciones2, para la totalidad de las lneas de montaje de la factora. Sin
embargo, este proyecto se limita al desarrollo de la primera experiencia piloto.
El rea escogida para este fin es la lnea de montaje del Estabilizador Horizontal3 del Falcon 7X, los
razonamientos que motivan esta eleccin se discuten ms adelante. A pesar de tratarse de un programa de
dimensiones reducidas en comparacin con el resto de montajes, la cantidad de recursos y departamentos que
intervienen directa o indirectamente en el proceso es muy notable.
Los departamentos que dan apoyo al programa de Falcon 7X son:

Departamento de Produccin. Responsable directo de la obra en curso, coordina la utilizacin


de recursos

Departamento de Control de Produccin y Planificacin. Planifica la produccin, gestiona las


rdenes concretas de fabricacin y las traslada al taller para que se hagan efectivas

Departamento de Lean Manufacturing. Responsable de la implantacin de la filosofa Lean en


el resto de la factora, provee de apoyo a las distintas reas en la utilizacin de herramientas
Lean

Departamento de Ingeniera de Produccin. Gestiona las rdenes de produccin, establece los


trminos en los que realizar los procesos y su metodologa

Departamento de Calidad. Garantiza el cumplimiento de los estndares de calidad

Departamento de Subcontratacin. Es el departamento encargado de adquirir los distintos


elementos que formarn parte del avin en el mercado, a travs de la subcontratacin a
empresas del sector

Departamento de Logstica. Controla el flujo se materiales interno y externo

Departamento de Aprovisionamiento de Materiales. Responsable de la compra y


aprovisionamiento de la materia prima

2 Aquellos programas aeronuticos de Tablada en vas de extincin no son objeto de aplicacin de la herramienta. Asmismo, mtodos de
fabricacin distintos de cadenas de produccin quedan fuera del mbito del proyecto.
3 Estabilizador horizontal o HTP, siglas en ingls de Horizontal Tail Plane

2 ANTECEDENTES

irbus Group es pionero mundial en el sector aeronutico, espacial y de los servicios relacionados con
la defensa, as como creador de tecnologa puntera.

2.1 Airbus Group


A partir de Enero de 2014 la compaa aeroespacial EADS pas a denominarse Airbus Group. El origen de
este nuevo nombre es tomado de una de las cuatro divisiones que componan el consorcio EADS: Airbus,
Cassidian, Astrium y Eurocopter. Esta nueva denominacin trajo consigo con un profundo cambio en el
diseo estructural de la compaa quedando constituida por solo tres unidades de negocio.
La primera de ellas, la nueva divisin llamada Airbus, engloba principalmente a la produccin de aviones
comerciales. En la actualidad, las familias de aviones que se producen van desde la Familia A320 hasta la
Familia A330. La apuesta innovadora del grupo para el siglo XXI es el A380 de fuselaje ancho, con capacidad
para ms de quinientos pasajeros.
Por otro lado, prcticamente toda la produccin militar ha sido aglutinada en una sola unidad denominada
Airbus Defense and Space, resultado de la fusin de las antiguas secciones de Airbus Military, Cassidian y Astrium.
Su propsito es dirigir las operaciones en relacin a la defensa y el espacio, repartidas en cinco lneas de
negocio: Military Aircraft, Space Systems, Communication, Intelligence & Security (CIS) y Electronics.
Finalmente, Airbus Helicopters nace en sustitucin de Eurocopter para hacerse cargo del segmento del mercado
de helicpteros, incluyendo tanto a helicpteros civiles como militares.

Figura 2-1. Logo de la nueva divisin Airbus Defense and Space. Fuente: www.airbus-group.com
En cifras, el Grupo Airbus cuenta con unas 170 localizaciones alrededor de todo el mundo y tiene empleados a
ms de 144.000 trabajadores. En este ltimo ao 2013 ha obtenido aproximadamente una facturacin de
686.700 millones de euros. Con casi 40.000 patentes y 10.000 inventos es uno de los mayores inversores en I+D
del sector aeroespacial a nivel mundial. No cabe duda de que es la mayor compaa aeroespacial y de defensa
de Europa y un referente de innovacin en todo el mundo (http://www.airbus-group.com/) [Citado el: 11 de
Mayo de 2014].

21

Antecedentes

22

2.2 Factora de Tablada


Airbus Defense and Space posee instalaciones en tres localizaciones dentro de Andaluca: San Pablo, Tablada y el
Centro Baha de Cdiz. De entre los programas que en estos centros se desarrollan destacan las lneas de
montaje final4 del gigante A400M y de los aviones de transporte y vigilancia Light and Medium CN235 y C295.
Adems se encuentran ubicados en San Pablo el centro de entregas y un centro de formacin. Como resultado
se renen las funciones de ingeniera de produccin, ensamblaje final, pruebas de vuelo, entrenamiento,
pintura y servicios de MRO (Maintenance, Repair and Overhaul).

Figura 2-2. FAL del A400M. Fuente: www.airbusmilitary.com


Tablada es la factora de aeronaves que la antigua CASA5 posea en Sevilla. A da de hoy, realiza
principalmente la produccin y fabricacin del motor y el estabilizador horizontal o HTP del A400M, la
integracin del boom para el A330 MRTT (Multi Role Tanker Transport), actividades de pre-montaje para el
CN235 y C295. En la planta de Tablada trabajan ms de 700 empleados y abarca ms de 98.500 metros
cuadrados, aproximadamente 90.000 de ellos edificados (http://www.airbusmilitary.com/) [Citado el: 11 de
Mayo de 2014].

Figura 2-3. Exteriores de la factora de Tablada. Fuente: www.airbusmilitary.com

4
5

Las lneas de montaje final son tambin conocidas como FAL, siglas de su nombre en ingls Final Assembly Lines
Construcciones Aeronuticas S.A.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

23

Figura 2-4. Layout de la factora de Tablada.


Tablada Fuente: Airbus Defense & Space.
Space

2.3 Lnea de montaje de HTP del Falcon 7X


Adems de los elementos anteriormente indicados,
indicados en Tablada se montan
ontan algunos otros componentes. Entre
E
ellos se encuentra el estabilizador horizontal del avin Falcon 7X, laa compaa francesa Dassault es propietaria
de esta aeronave de negocios de largo
largo alcance. Desde hace varios aos, la planta de Tablada acta como prepre
FAL para Dassault proveyendo el elemento HTP de este avin (http://www.dassault--aviation.com/) [Citado el:
13 de Mayo de 2014].

Figura 2-5.
5. Aeronave Falcon 7X en vuelo.
vuelo Fuente: www.dassault-aviation.com
aviation.com
La lnea de montaje de este HTP produce bajo el control de un sistema tipo Pull6 donde la demanda, nmero
de aviones Falcon 7X requeridos anualmente, es quien determina
determi el tack time7 necesario. Por norma general, se
trabaja cinco das en semana en dos turnos de ocho horas cada da; eventualmente, en el caso de que se
produjeran retrasos con respecto al plan de produccin establecido, si se estima necesario podra aadirse un
tercer turno
rno o un sexto da de trabajo durante el fin de semana.

Un sistema de produccin tipo Pull es aquel donde solamente se fabrica lo que el cliente, interno o externo, solicita. Maximiza el aporte de
valor al producto y da lugar a un flujo continuo y flexible de produccin, permitiendo
per
reducir los stocks de seguridad.
7 El trmino takt time es una palabra alemana que significa ritmo. Indica el ritmo o paso al que se debe producir para estar en sincrona
con la demanda del producto. Es el resultado de dividir el tiempo disponible
disponible para produccin entre la demanda del cliente en ese periodo
de tiempo.
6

Antecedentes

24

Figura 2-6.
6. Elemento HTP del Falcon 7X.
7X Fuente: Airbus Defense & Space.
Space
El proceso de montaje consta de cuatro etapas bien diferenciadas, en cada una de ellas se llevan a cabo una
serie de operaciones perfectamente determinadas. Cada operacin se encuentra detallada en unos estndares
SOI (Standard Operation Instruction)) donde viene especificada toda informacin necesaria para su ejecucin: las
instrucciones
trucciones del proceso, el nmero de operarios requerido, las herramientas a utilizar, los EPI (equipos de
proteccin individual) necesarios, el tiempo incurrido estndar estimado, etctera.
A continuacin de describen brevemente las cuatro fases del montaje
monta para dar una idea del procedimiento de
fabricacin del elemento HTP:

FASE I. Preparacin de grada y posicionamiento, taladrado y remachado de estructura de


cajn lateral

FASE II. Situacin y taladrado definitivo de herrajes, largueros y marcos y equipado


completo de cajn

FASE III. Best fit, taladrado de unin y de herrajes interiores, sellado y remachado parcial

FASE IV. Instalacin elctrica e hidrulica completa, finalizacin de sellado y pintura y


limpieza

7X Fuente: Airbus Defense & Space.


Space
Figura 2-7. Layout del rea de montaje del HTP del Falcon 7X.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

25

El nmero terico de operarios por fase y turno vara entre una y seis personas y es consecuencia inmediata
del takt time estipulado. En la prctica la variabilidad de los recursos es muy elevada debido a la gran cantidad
de factores que intervienen como el absentismo, las necesidades de capacidad de otras fases u otros programas
o reuniones extraordinarias donde se requiera a personal del taller. Esta circunstancia genera grandes
dificultades a la hora de realizar una planificacin de la produccin eficiente y se vuelve prcticamente
inviable llevar un seguimiento exhaustivo de la produccin.
Queda descrita la factora de Tablada y, en particular, el programa aeronutico correspondiente al montaje del
HTP del Falcon 7X. Por comodidad, en adelante se har referencia a esta rea como HTP F7X. En captulos
posteriores se explicar en profundidad la influencia de la variabilidad de los montajes en la aplicacin
informtica y las decisiones tomadas en este sentido.

3 SEGUIMIENTO DE LA PRODUCCIN COMO


HERRAMIENTA DE LEAN MANUFACTURING
The most dangerous kind of waste is the waste we do not
recognise.
- Shigeo Shingo -

a finalidad de este tercer captulo no es desarrollar en profundidad la filosofa Lean Manufacturing ni


analizar las herramientas que sta utiliza, sino dar una visin general sobre el papel que Lean juega
en un entorno productivo real y justificar su implicacin en el seguimiento de la produccin.

3.1 Origen de Lean Manufacturing


El modelo de produccin ligera (lean production en ingls) fue difundido a travs de la publicacin del libro
La mquina que cambi el mundo (Womack, Jones y Roos, 1992). Este libro de divulgacin est basado en el
programa de investigacin IMVP (International Motor Vehicle Program) realizado por el Instituto Tecnolgico de
Massachussets (MIT) localizado en Boston, Estados Unidos. El estudio analizaba la industria del automvil en
el mundo y pona de manifiesto que la industria japonesa era ms competitiva que la industria occidental. La
comparativa se basaba en el anlisis las empresas japonesas de Toyota y Honda de cuyos sistemas de
produccin, en el caso de Toyota muy orientado a la reduccin de costes y ms orientado a la innovacin y
flexibilidad en el caso de Honda, naci el conjunto de prcticas y recomendaciones bautizado con el nombre
de Lean Manufacturing o Lean Production (Williams, 1992).
El adjetivo Lean significa ligero, esbelto o delgado. Este trmino ha sido traducido al castellano como
Produccin Ligera o Produccin ajustada. Como quedar puesto de manifiesto en el prximo apartado, este
sistema de produccin busca tanto la eliminacin de actividades innecesarias (aligerar en el sentido de facilitar
el trabajo), como la eliminacin de tiempos muertos en el trabajo (aligerar en el sentido de acelerar el trabajo) y
el ajustar la produccin de cada seccin del proceso a las necesidades de la seccin siguiente.

3.2 Visin y principios de Lean Manufacturing


La definicin del trmino produccin ligera establecida por Womack et al (1992) en el estudio anteriormente
mencionado es la siguiente: un flujo de produccin integrado en pequeos lotes y justo a tiempo para
minimizar inventarios, se practica la prevencin de defectos en vez de la rectificacin de fallos, la demanda
tira de la produccin, la organizacin es flexible y basada en equipos de trabajo polivalentes con mano de obra
indirecta reducida, existe una involucracin activa de los empleados de produccin en la resolucin de las
causas de los problemas para maximizar el valor aadido, y se dispone de una integracin mediante
cooperaciones desde la materia prima hasta el cliente (Khler, 2001).
Esta filosofa de produccin puede resumirse en cinco principios bsicos que pueden ser aplicados a cualquier
organizacin de cualquier sector:

Especificar qu crea valor y qu no lo crea desde la perspectiva del cliente y no desde el punto de
vista de la empresa individual o de sus departamentos.

Identificar todos los pasos necesarios para disear, ordenar y producir el producto a lo largo de
toda la cadena de valor con la intencin de destapar el despilfarro.

Llevar a cabo aquellas acciones que aaden valor al producto sin interrupciones, retrasos,
reprocesos, esperas o fallos.
26

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

27

Solo producir aquello requerido por el cliente.

Buscar la perfeccin mediante la eliminacin continua de despilfarros a medida que van siendo
descubiertos.

El Toyota Production System (TPS) clasific el despilfarro en siete categoras o tipos:

Figura 3-1. Los siete tipos de despilfarros.

Es preciso indicar un ltimo tipo de despilfarro que no aparece en esta clasificacin: la infrautilizacin de las
personas (P. Hines, 2000). Cada miembro de la organizacin debe involucrarse en el proceso de mejora
continua de forma que se maximice su verdadero potencial.
Cuando hablamos de despilfarro, resulta til definir tres tipos diferentes de actividades productivas:

Actividades de valor aadido: son aquellas actividades que, desde el punto de vista del cliente,
hacen que el producto gane valor.

Actividades de no valor aadido o despilfarros: no aumentan el valor aadido del producto y no


son necesarias bajo las circunstancias actuales.

Actividades necesarias de no valor aadido: no aaden valor al producto pero son necesarias a
menos que el proceso existente fuera radicalmente modificado.

La proporcin entre los tres tipos de actividades que es esperable en un sistema productivo cualquiera se
estima como sigue:

Figura 3-2. Distribucin de actividades en funcin del valor aadido.

Seguimiento de la Produccin como Herramienta de Lean Manufacturing

28

Estos porcentajes confirman que existe un considerable margen para reducir el despilfarro en la gran mayora
de los procesos. Para ello existe una amplia variedad de herramientas Lean, una de las ms potentes y al
mismo tiempo ms simples es denominada 5S. Se trata de un enfoque sistemtico para la organizacin del
puesto de trabajo, que promueve el sentido de la propiedad y la autodisciplina para mantener y desarrollar las
prcticas del trabajo diario. Busca mantener un entorno de trabajo seguro, limpio, organizado y visual que
facilite el trabajo y logre una mayor eficiencia.
Las tcnicas 5 S son:

Seiri: Organizacin y eliminacin de elementos innecesarios.

Seiton: Orden. Organizar los elementos necesarios.

Seiso: Limpieza e inspeccin.

Seiketsu: Estandarizacin.

Shitsuke: Disciplina. Mantener la cultura de las 5 Ss.

Figura 3-3. Integracin de las tcnicas 5S

3.3 Departamento de Lean Manufacturing en Tablada


Desde hace ya algunos aos se viene implantando este modelo de produccin ligera en la factora de Tablada.
Actualmente, se aplican en cada una de las reas productivas numerosas tcnicas y herramientas lean como
5S, VSM8, Process Confirming9, Estandarizacin, SMED10, Gestin Visual, Kaizen11, TPM12, PPS13 o poka-yoke14.
Si bien es cierto que an queda un amplio margen de mejora, los esfuerzos por conseguir una produccin ms
ajustada a las necesidades reales ya estn dando sus frutos y, en general, ao a ao los principales indicadores
de calidad de la produccin mejoran.
Como ya se ha mencionado anteriormente, uno de los principios bsicos de un sistema Lean es la participacin
e implicacin de todos los miembros de la organizacin en la implantacin de estas prcticas. En concordancia
con lo anterior, todos los Departamentos de Tablada trabajan diariamente en la aplicacin de las distintas
herramientas. Cul es entonces el papel del Departamento de Lean Manufacturing? La funcin de este
8 Value Stream Mapping o mapeo de la cadena de valor, representa esquemticamente cualquier proceso, identificando las operaciones que
aportan valor y las que se consideran despilfarros. Vincula el flujo de informacin y de materiales.
9 Herramienta utilizada para garantizar el correcto funcionamiento de los procesos asociados a la lnea productiva, asegurando que el
operario tenga todo lo necesario para desarrollar su trabajo. Permite mantener en el tiempo las mejoras alcanzadas.
10 Single Minute Exchange of Die, metodologa que sirve para reducir los tiempos de puesta a punto de las mquinas.
11 Mejora continua.
12 Total Productive Maintenance, se basa en un equipo que implica a cada nivel y funcin de la organizacin, desde altos directivos hasta los
operarios del taller, con el fin de mantener las condiciones ptimas del equipo o puesto de trabajo mediante la bsqueda de la eficiencia
total del proceso.
13 Practical Problem Solving, resolucin de problemas de complejidad simple y media mediante un anlisis basado en la bsqueda de las
causas raz. Implementa acciones para asegurarse de que el problema nunca vuelve a reaparecer.
14 Prevencin de defectos, herramienta basada en establecer mecanismos que eviten defectos en la produccin, aunque se cometan errores.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

29

departamento es dar apoyo y asesorar al resto de reas sobre cmo llevar a cabo dichas tcnicas y en segundo
lugar, pero no por ello menos importante, sensibilizar y promover un espritu de compromiso con la tarea de
implantar la filosofa lean.
Tambin cabe mencionar que este departamento es el encargado de dar de forma continuada la formacin
pertinente a trabajadores de taller. Por otro lado, adems asume gran parte de las tareas en el rea de
comunicacin interna de Tablada, siendo responsable de la redaccin y publicacin de noticias y revistas o de
la elaboracin de vdeos divulgativos.
En cuanto a la organizacin y reparto de tareas, cada miembro del departamento se encarga de gestionar todo
lo relacionado con uno o varios programas aeronuticos dependiendo de su envergadura. Por ejemplo, el
programa A400M necesita de una persona del departamento lean dedicada en exclusiva; acarrea el montaje de
distintas partes del avin y conlleva por s solo una gran carga de trabajo, a esto hay que aadirle el hecho de
que se trata de un programa muy reciente que se encuentra en vas de maduracin.

3.4 Seguimiento de la produccin como herramienta de Lean Manufacturing


En lnea con los principios de Lean Manufacturing en Tablada se viene desarrollando un sistema de
seguimiento de la produccin. Los tres principales objetivos que se persiguen con dicho seguimiento son:

Controlar en todo momento el estado de la produccin.

Identificar las incidencias o problemas que afectan a la cadena productiva.

Registrar las desviaciones respecto a la planificacin prevista.

Para llevar a cabo un seguimiento efectivo, esta informacin debe estar disponible y llegar a todo el personal
implicado en la cadena de montaje en cuestin; por tanto, es crucial que los datos sean presentados de forma
sencilla y visual. Este razonamiento pone en relieve la relevancia y utilidad de dos de las tcnicas lean
apuntadas con anterioridad: gestin visual y estandarizacin. Para llevar un control visual mediante grficas,
tablas o diagramas es preciso llegar previamente a un convenio, esto es, establecer un estndar.
Son numerosas las ventajas de un sistema de control con estas caractersticas. En primer lugar, todos los
empleados se mantienen informados del estado del proceso y de sus incidencias. Cualquiera es capaz de
detectar alguna anomala en el proceso sin necesidad de conocer sus particularidades. El elemento de control,
al estar situado en el rea de trabajo, desempea tambin una funcin motivadora implicando a todos los
trabajadores en el compromiso de cumplir con los objetivos.
Las herramientas especficas que actualmente se utilizan en la factora de Tablada para llevar el seguimiento
de la produccin son dos: Paneles SQCDP15 y Bar-Chart. Aunque en el prximo captulo los Bar-Chart sern
descritos con ms detalle para el caso concreto del montaje del HTP del Falcon 7X, a continuacin se da una
idea general de los objetivos y la utilidad de estas tcnicas.
Los paneles SQCDP son una herramienta que permite la autogestin de los GNT16, est pensada para el team
leader17 y su equipo. Permiten escalar los problemas hacia niveles superiores de la organizacin y realizar un
seguimiento diario de la produccin, facilitando la definicin de las acciones correctivas apropiadas; esto se
consigue a travs de la celebracin de reuniones diarias por niveles atendiendo a la estructura jerrquica de la
organizacin. Adems, fomentan la transparencia y promueven el trabajo en equipo tanto de los operarios
como de los componentes de la estructura soporte. La presentacin del panel es clara y simple, permitiendo a
cualquier nuevo miembro entender fcilmente los objetivos fijados y permitiendo una gestin visual del
seguimiento de los problemas.
Cada letra de SQCDP lleva asociada un indicador que valora el aspecto productivo al que dicha letra hace
referencia. Se definen unos objetivos para cada indicador a medir, en cada reunin se anota la informacin real
y se compara con los objetivos marcados. Si el indicador est dentro del objetivo se dibuja sobre la letra, en el
da correspondiente, en verde y si est fuera se pone en rojo. A continuacin se muestra un modelo de panel
SQCDP.

SQCDP: Security, Quality, Cost, Delivery and Personal.


Grupo Natural de Trabajo.
17 Es el operario responsable de dirigir y coordinar al GNT, conoce en profundidad el conjunto de operaciones que el GNT ejecuta. Participa
en la toma de decisiones sobre el rea.
15
16

30

Seguimiento de la Produccin como Herramienta de Lean Manufacturing

Figura 3-4. Modelo de un panel SQCDP. Fuente: Elaboracin propia.


Los Bar-Charts son en definitiva diagramas de Gantt que representan la planificacin del trabajo diario del
personal de taller. Cada operacin tiene asociada un tiempo de ejecucin estndar, el objetivo de estos
diagramas es recabar informacin acerca de las desviaciones respecto a dicha planificacin y respecto a dicho
estndar de tiempos. Mediante un cdigo de colores, el personal de taller anota sobre el Bar-Chart las
operaciones realizadas y el tiempo dedicado en ellas.

Figura 3-5. Seguimiento de la produccin mediante Bar-Chart en papel. Fuente: Airbus Defense & Space.

La elaboracin de los Bar-Charts de cada programa aeronutico de la factora es labor del Departamento de
Ingeniera. Estos diagramas se elaboran en base a las caractersticas especficas de cada montaje como pueden
ser las relaciones de precedencia entre operaciones, la coordinacin de tareas realizadas por empresas
subcontratadas, la duracin estndar de realizacin de las operaciones o el nmero de operarios en cada
turno. Conocida esta informacin, el gran reto que surge es plasmar la realidad del montaje en un diagrama
nico que sea capaz de asumir la incertidumbre intrnseca de los procesos realizados de forma manual. En la
medida de lo posible, la planificacin de las operaciones debe ser flexible a posibles variaciones.
El objeto de estos diagramas es doble, por un lado informar sobre el grado de avance de la produccin, esto es,

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

31

dar visibilidad de las operaciones ya realizadas y pendientes de ejecucin. En segundo lugar, se pretende
recoger las desviaciones respecto del estndar planificado para poder estudiar las causas raz de estas
variaciones y establecer planes de actuacin para atajarlas.
En resumen, las herramientas de seguimiento productivo implementadas por parte del Departamento de Lean
Manufacturing, los paneles SQCDP y los Bar-Chart, posibilitan llevar el control del estado de la produccin e
identificar y resolver los problemas que afectan a la cadena productiva. Esto es, propician una mejora
continua.

4 DEFINICIN DE LA SITUACIN DE PARTIDA

n consonancia con dos de los pilares de la filosofa Lean como son la gestin visual y la
estandarizacin, los Bar-Chart permiten llevar un seguimiento del avance de la produccin,
comparando la planificacin del trabajo con la ejecucin real de las tareas de una forma visual e
intuitiva.

4.1 La necesidad de Bar-Chart digital


4.1.1

Funcionamiento del Bar-Chart en papel

Dado que toda la informacin recogida es aportada por el personal de taller, los Bar-Chart impresos en papel
se localizan cerca del rea de trabajo ubicados sobre paneles, el formato de impresin es tamao A0 por
motivos de legibilidad. Al final de cada turno, cada GNT anota con rotuladores sobre el papel las operaciones
realizadas junto con el tiempo invertido, de esta forma queda registrada la fecha y el turno en que se ejecut
cada operacin. Las instrucciones para cumplimentar los Bar-Chart vienen recogidas en un estndar, donde
tan solo se precisan los colores verde y rojo para hacer el seguimiento.

Figura 4-1. Estndar para cumplimentar el Bar-Chart en papel. Fuente: Airbus Defense & Space.

En la imagen anterior puede observarse cmo se cumplimenta un Bar-Chart. El tiempo invertido en realizar
cada operacin debe marcarse en la fila inmediatamente inferior a donde est dibujada la planificacin. Se
deber pintar en color verde si se produce de acuerdo a la planificacin, en el caso de que se empiece una
tarea antes o despus de lo planificado deber indicarse el motivo pero se seguir coloreando en verde.
Adems de la programacin temporal, cada operacin tiene estipulado un nmero determinado de operarios
que debe ser respetado, a estos efectos si la capacidad real destinada a ejecutar una operacin no se
corresponde con la requerida se debe indicar el nmero de operarios que trabajaron en dicha tarea. Se pintar
en rojo cuando se produzca alguna incidencia durante el transcurso de la operacin y se anotar el problema
junto con su causa, en el caso de que se detectasen incidencias repetitivas se deber informar al mando del
rea para estudiar la situacin y tomar las medidas oportunas. Como ejemplos de incidencias caben citarse
HNC18, ID19, faltas de personal, averas en medios industriales y errores de documentacin o de planos.

18
19

Hoja de No Conformidad, calidad de la pieza no conforme debido a un mal procesado.


Informe de Discrepancias, pieza con defectos suministrada por un proveedor.

32

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

4.1.2

33

Inconvenientes del Bar-Chart en papel y necesidad de Bar-Chart digital

Sin embargo, realizar este seguimiento en papel plantea varios inconvenientes que a continuacin se
enumeran.

Los paneles ocupan demasiado espacio en el taller. Adems de los paneles destinados a la
herramienta SQCDP, hay que colocar un panel por cada fase del montaje.

Para rellenar los cronogramas los operarios tienen que dejar su puesto de trabajo y moverse hasta los
paneles donde se encuentran los Bar-Chart.

Resulta costoso rellenar los cronogramas coloreando sobre un formato A0, es fcil equivocarse de
fecha o turno al pintar sobre la cuadrcula.

Para consultar el estado de la produccin hay que desplazarse hasta el taller y mirar los Bar-Charts.

Una vez finalizado el seguimiento del montaje de una pieza el papel se retira, se enrolla y se
almacena, por lo que la informacin recogida tiene difcil acceso.

En ltima instancia, estas desventajas se traducen en despilfarros. Los operarios se ven forzados a trasladarse
hasta los paneles para poder cumplimentarlos y cualquiera que necesite consultar el avance de la produccin
debe acudir hasta el taller, este es un despilfarro y se corresponde con la sexta muda denominada Movimientos.
Asmismo, se identifica el quinto despilfarro conocido como Inventarios en la citada acumulacin de papeles
formato A0 enrollados, notar que tan solo en el rea del HTP F7X se cumplimentan cuatro Bar-Chart cada siete
das de trabajo. Por ltimo, la cantidad de paneles acumulados a lo largo de la zona del taller da una
apariencia de desorden que no contribuye al entorno de trabajo promovido por las tcnicas 5S.
De esta serie de dificultades se desprende la necesidad y conveniencia de realizar el seguimiento de la
produccin a travs de una herramienta digital. A priori, una aplicacin informtica no solo solventara los
inconvenientes anteriores terminando con los problemas de espacio y de trazabilidad de la informacin,
ofreciendo la posibilidad de colocar ordenadores cerca de los puestos de trabajo y permitiendo consultar el
avance de la produccin desde cualquier parte de la planta; sino que adems planteara grandes ventajas:

Simplificara la recogida de los datos obteniendo una fotografa de la produccin ms precisa y


permitiendo realizar un anlisis de mayor fiabilidad.

Facilitara la gestin de los recursos ya que aportara informacin instantnea sobre el estado de
avance de la produccin de cada rea de la factora.

Se identificara de forma inmediata las posibles desviaciones en operaciones del camino crtico.

Agilizara la respuesta ante retrasos respecto a la planificacin de los distintos programas.

Mejorara el rendimiento global de las lneas de montaje gracias a la disminucin de variabilidad y a


la reduccin del impacto de las desviaciones.

Constituira una herramienta de apoyo a la toma de decisiones de alto nivel, a largo plazo la
recopilacin de incidencias permitira detectar aquellas ms recurrentes dando orientacin sobre
aquellas acciones de mejora ms acertadas.

4.2 Experiencia piloto en la lnea de montaje HTP del Falcon 7X


La aplicacin informtica de un Bar-Chart digital constituye un avance completamente novedoso en la factora.
Al no existir ningn precedente, se opt por comenzar con un programa piloto centrado en una lnea concreta
con el objetivo de desarrollar la aplicacin en base a un montaje sencillo para luego ser sometida a un perodo
de pruebas. Sin embargo, el proceso de desarrollo del Bar-Chart digital para la experiencia piloto deba llevarse
a cabo siempre teniendo en cuenta que ms tarde se hara extensible al resto de reas de la factora, lo cual es
un factor importante que ms tarde condicionar la forma de programar la aplicacin.
La lnea elegida para poner en marcha el piloto deba reunir ciertas caractersticas tales que se facilitara la
puesta a punto del programa. En primer lugar, tena que ser un rea de gran madurez, en donde el personal
de taller tenga suficiente experiencia y haya superado la curva de aprendizaje. Otro factor importante era que
el flujo de produccin fuera estable y no presentase grandes oscilaciones respecto del plan productivo; se
recuerda que el objetivo del Bar-Chart es medir las desviaciones en relacin a una planificacin del trabajo, si

Definicin de la Situacin de Partida

34

no se siguiera dicha planificacin la aplicacin perdera su inters. Por ltimo, tambin resultaba conveniente
lanzar el piloto en una lnea de dimensiones reducidas para no involucrar a demasiadas personas durante el
perodo de pruebas y puesta a punto de la herramienta.
La lnea de montaje del HTP del Falcon 7X reuna todas estas condiciones y fue elegida para comenzar a usar
la aplicacin. A pesar de que se trataba de la mejor opcin cabe mencionarse alguna desventaja del montaje de
este HTP en comparacin a otros programas aeronuticos. Por ejemplo, en trminos generales la edad del
personal de taller es elevada; a fin de cuentas, el xito de la aplicacin dependa absolutamente de la
aceptacin que sta tuviera entre los operarios e, indudablemente, las personas jvenes estn ms
familiarizadas con el uso de nuevas tecnologas.
Las caractersticas ms relevantes de este programa aeronutico han sido expuestas con anterioridad en el
apartado de antecedentes de la memoria.20

4.3 Nuevas herramientas de seguimiento visual de la produccin: Performance


Tracker y Control Board
El sistema de visualizacin y seguimiento del avance de la produccin, en todos sus mbitos, est constituido
por aquellas herramientas de gestin visual encaminadas tanto a la captacin y registro de datos sobre la
situacin real en que se encuentra la produccin en cada momento, aportada por los miembros del equipo de
trabajo, como a la comparacin de los datos contra el nivel esperado de cumplimiento y la toma de decisiones
respecto de las acciones necesarias de acuerdo a la informacin obtenida. Las herramientas como VSM,
paneles SQCDP o Bar-Charts son ejemplos de herramientas aplicadas con este fin.
Un Bar-Chart indica turno a turno y dentro del takt establecido, la secuencia de operaciones u rdenes de
produccin que deben realizarse, marcando las que conforman el camino crtico, por tanto ofrece una visin
macro del proceso. Segn el nivel de la organizacin en cuestin, es til expresar la informacin desde otros
puntos de vista, es el caso del Performance Tracker y el Production Control Board.

Figura 4-2. Modelo de Bar-Chart. Fuente: Airbus Defense & Space.

El Performance Tracker ha sido diseado para ser utilizado por el primer nivel de la organizacin, el GNT. Es
un estndar de tareas que indica turno a turno y por cada operario que interviene, las operaciones que deben
realizarse, visin micro. Permite un reconocimiento rpido de las desviaciones y problemas de un equipo de
trabajo y facilita tomar accin sobre las causas fundamentales de los incidentes en la produccin y de los
retrasos.

20

Cfr. cap. 2 apartado 2.3 Lnea de Montaje de HTP del Falcon 7X.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

35

Figura 4-3. Modelo de Performance Tracker. Fuente: Airbus Defense & Space.

Por su parte, el Production Control Board muestra la situacin y el progreso de un producto, a lo largo de la
cadena de valor, dentro de las instalaciones, para facilitar la gestin y la toma de decisiones a alto nivel. Ofrece
una visin global de la lnea de forma que ubica cada elemento dentro del flujo descrito en el VSM, visin
macro.
A efectos de una primera aproximacin a un programa aeronutico ya establecido, la pretensin de hacer un
seguimiento a nivel micro de la produccin resulta demasiado ambiciosa. En consecuencia, la experiencia
piloto en Tablada se ocupa de la implantacin del Bar-Chart Digital y del Control Board. Una vez que estas
herramientas estn en funcionamiento se podra estudiar la conveniencia de dar un paso ms y utilizar la
herramienta del Performance Tracker.

4.4 Aplicacin informtica en el entorno de Microsoft Office Excel


Una vez planteado el objetivo de desarrollar un Bar-Chart digital y un Control Board y determinada el rea
adecuada para lanzar el piloto, el siguiente paso era decidir qu programa emplear para el desarrollo de la
aplicacin. A pesar de que existe software especfico para construir diagramas de Gantt, se escogi el entorno
de Microsoft Office Excel. Las razones que motivan esta decisin son las siguientes:

Los Bar-Charts de todas las reas han sido creados mediante este programa por el Departamento
de Ingeniera. Construir la aplicacin tambin en Excel permite aprovechar estas hojas de clculo
donde se encuentran los Bar-Charts como punto de partida para el desarrollo de la herramienta.

Excel es un programa muy extendido a nivel de usuario en el mundo profesional. Esto supone
una gran ventaja ya que numerosas personas de las distintas reas soporte implicadas en los
procesos de produccin (control de produccin, calidad, subcontrataciones, mandos, etctera) y
que van a hacer uso de la herramienta ya manejan el entorno de Excel con habilidad.

Sin embargo, y como ya se ha apuntado con anterioridad, quien realmente juega un papel crucial en el
proyecto son los trabajadores de taller: son ellos los encargados de recoger los datos sobre la produccin
diaria. La veracidad de esta informacin es esencial ya que luego ser utilizada por los mandos de niveles
superiores como apoyo para el anlisis y toma de decisiones a medio y largo plazo. Por desgracia la gran
mayora de los operarios nunca han usado Excel, ni siquiera muchos de ellos estn familiarizados con
ordenadores de mesa. Como consecuencia de todo ello, la aplicacin debe hacer de Excel un entorno amigable
en donde el procedimiento de introduccin de la informacin que se quiere recopilar sea lo ms sencillo e
intuitivo posible.
Para hacer de Excel un entorno ms amigable y para gestionar todos los datos que sean introducidos, se

36

Definicin de la Situacin de Partida

explotarn las posibilidades que ofrece el lenguaje de programacin denominado Visual Basic for Applications
del paquete de Microsoft Office. En definitiva, se trata de automatizar las hojas de clculo de Excel en donde se
elaboran los Bar-Charts mediante la programacin en VBA.
Hasta ahora se ha visto cmo el funcionamiento del Bar-Chart en papel conlleva varios inconvenientes o
despilfarros que podran ser superados con la versin digital de la herramienta, la cual adems amplia la
utilidad del Bar-Chart con nuevas funcionalidades como el Control Board. La aplicacin se desarrollar en MS
Excel y se implantar como experiencia piloto en el rea HTP del Falcon 7X. En el siguiente captulo se
explicar el procedimiento seguido para el desarrollo de la herramienta.

Figura 4-4. Entorno de programacin de VBA. Fuente: Elaboracin propia.

5 DESARROLLO DE BAR-CHART DIGITAL


5.1 Recursos y documentacin

ntes de comenzar el desarrollo de la aplicacin era indispensable adquirir ciertos conocimientos


elementales acerca de VBA. Este lenguaje de programacin de macros fue creado esencialmente para
automatizar tareas repetitivas de programas del paquete Microsoft Office como Word, Excel, Access o
PowerPoint, no obstante VBA tambin brinda la posibilidad de ampliar las funcionalidades de este
tipo de programas. La peculiaridad de dicho entorno de programacin radica en que es un lenguaje orientado
a objetos y eventos, lo cual hace necesario dominar las caractersticas del software en cuestin antes de iniciar la
programacin del cdigo.

Por fortuna, ya se conoca a fondo MS Excel y solo era preciso formarse en el lenguaje utilizado por VBA. Para
este fin se emple un manual de extensin moderada descargado de la red en el que se imparta una
introduccin sobre los conocimientos bsicos para utilizar VBA en MS Excel 2007 (Acosta, 2010). Durante
alrededor de una semana se fueron adquiriendo las competencias necesarias, previas al desarrollo del
proyecto propiamente dicho. Una vez sentadas las bases, comenz el proceso de adicin de nuevas
funcionalidades al Bar-Chart mediante cdigo VBA y con el apoyo de la Ayuda de Excel y de los artculos
tcnicos y ejemplos de la pgina oficial de Office (http://office.microsoft.com/). Ocasionalmente, algunas
cuestiones se resolvieron a travs de la bsqueda soluciones concretas encontradas en foros y otras pginas
especializadas en programacin para Excel.

Figura 5-1. Portada del manual de programacin en VBA para MS Excel 2007

37

Desarrollo de Bar-Chart Digital

38

5.2 Diseo y programacin de Bar-Chart y Control Board


5.2.1

Disposicin y estructuracin de la aplicacin

A continuacin se expone cmo Bar-Chart y Control Board permiten llevar el control de la produccin de forma
eficiente en el rea HTP F7X.
Se dispondr de un Bar-Chart digital por cada una de las cuatro fases del montaje del F7X, en ellos se
especifican las operaciones a ejecutar en cada fase durante un takt time completo. Idealmente, cada vez que un
operario complete una tarea debera acudir a la aplicacin y registrar la informacin correspondiente. Sin
embargo, en esta primera toma de contacto solamente se llevar a cabo la actualizacin de la herramienta al
final de cada turno. Como es lgico, para ello es imprescindible habilitar un ordenador por fase a disposicin
del personal de taller, esta condicin no supondr un inconveniente ya que actualmente existen ordenadores
en cada fase destinados al acceso al sistema SAP21 de gestin de la informacin; estos terminales se
aprovecharn para cargar los Bar-Chart. Cabe recordar que la funcin de los operarios es trabajar en el taller,
por tanto debe intentar minimizarse el tiempo que estos empleados dedican a tareas de otra ndole.
Todos los datos recogidos de las distintas fases sern automticamente trasladados al Control Board del rea,
herramienta donde el mando podr controlar el avance de la produccin del rea en su conjunto
prcticamente en tiempo real. Adems, dado que todos los archivos Excel estarn en lnea, cualquiera con
acceso a ellos los puede consultar o modificar en cualquier momento.
La carpeta en red donde permanecern los archivos Excel se estructura de la siguiente manera: se dispone de
un libro Excel por cada nuevo avin que entra en la lnea, estos libros se nombran siempre de la misma forma:
MSN22 n de avin F7X; por ejemplo, el libro denominado MSN 268 F7X contiene el Bar-Chart del avin nmero
268 procesado en la lnea HTP F7X. Cada uno de estos libros est compuesto por cuatro primeras pestaas
etiquetadas como FASE I, FASE II, FASE III y FASE IV, correspondientes a los Bar-Chart de las cuatro fases del
montaje, ms dos ltimas pestaas denominadas Incidencias y Resumen.
Asimismo, se encuentran ubicados en la carpeta en red otros tres libros denominados MSN x F7X, Almacn
Incidencias y Control Board que son detallados ms adelante.

Figura 5-2. Carpeta en red. Fuente: Elaboracin propia.

Sistema informtico que comprende numerosos mdulos integrados, abarcando prcticamente todos los aspectos de la administracin
empresarial. Cada mdulo realiza una funcin diferente y comparte la informacin con el resto de reas.
22 MSN, Master Serial Number. Identifica de forma inequvoca a cada pieza producida, se corresponde con el nmero de avin.
21

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

5.2.2

39

Programacin del Bar-Chart

Durante todo el proceso de creacin del Bar-Chart digital se persigui que el manejo de la herramienta fuera lo
ms sencillo posible. Se estableci como criterio de diseo minimizar el uso del teclado, de tal forma que la
aplicacin pudiera manipularse por medio de clic de ratn; esta premisa estuvo presente a lo largo del
desarrollo del Bar-Chart. El procedimiento general seguido a lo largo del desarrollo de la herramienta fue
simple, aproximadamente cada dos semanas se reuna un equipo de trabajo para exponer nuevas ideas acerca
de las funcionalidades de la aplicacin y analizar los resultados de las cualidades ya implementadas. Este
proceso se prolong alrededor de dos meses.

5.2.2.1

Controles ActiveX

Antes de explicar las nuevas funcionalidades que se fueron incorporando al Bar-Chart, es conveniente definir
brevemente los controles ActiveX de Excel, muy utilizados en la aplicacin. Los controles ActiveX pueden
usarse en formularios de hoja de clculo, con o sin el uso de cdigo VBA, y en formularios del usuario de
VBA. Tienen amplias propiedades para personalizar su apariencia, comportamiento, fuentes y dems
caractersticas. Tambin se pueden controlar los diversos eventos que se producen cuando se interacta con
un control ActiveX, asimismo es posible escribir macros que respondan a eventos asociados con estos
controles. Cuando un usuario del formulario interacta con el control, el cdigo de VBA se ejecuta para
procesar cualquier evento que se produzca para dicho control (http://office.microsoft.com/) [Citado el: 24 de
Mayo de 2014].
El equipo tambin contiene muchos controles ActiveX instalados por Excel y otros programas, como el
Control de calendario. A continuacin se resumen los controles ActiveX ms representativos.

Casilla de verificacin. Activa o desactiva un valor que representa una seleccin inequvoca entre
opuestos. Una casilla de verificacin puede tener uno de tres estados: activada, desactivada y mixta,
lo que significa una combinacin de los estados activada y desactivada (como en una seleccin
mltiple).

Cuadro de texto. Permite al usuario ver, escribir o editar texto o datos enlazados a una celda, en un
cuadro rectangular. Un cuadro de texto tambin puede ser un campo de texto esttico que presenta
informacin de solo lectura.

Botn de comando. Ejecuta una macro que realiza una accin cuando un usuario hace clic en l.

Cuadro de lista. Muestra una lista de uno o ms elementos de texto de entre los cuales puede elegir el
usuario.

Cuadro combinado. Combina un cuadro de texto con un cuadro de lista para crear un cuadro de lista
desplegable. Un cuadro combinado es ms compacto que un cuadro de lista pero requiere que el
usuario haga clic en la flecha abajo para mostrar una lista de elementos.

Etiqueta. Identifica el propsito de una celda o un cuadro de texto, o muestra texto descriptivo (como
ttulos, leyendas, imgenes) o breves instrucciones.

Ms controles. Muestra una lista de controles ActiveX adicionales disponibles en el equipo que puede
agregar a un formulario personalizado, como el Control de calendario.

Tambin es preciso mencionar otra herramienta de Excel utilizada para este proyecto denominada Grabar
Macro, la cual guarda los comandos que se realicen en una macro para que el usuario los pueda volver a
ejecutar. Esta opcin es tremendamente til ya que permite al programador ver el cdigo que se ejecuta al
efectuar una determinada accin. Dejando a un lado el mbito de la programacin, tambin se ha hecho uso
de distintas funcionalidades de Excel como Formato condicional, Filtros, Tabla dinmica, Grficos o Inmovilizar
paneles (Chinowsky, 2009).

Desarrollo de Bar-Chart Digital

40

5.2.2.2

Limitaciones de Microsoft Office Excel

A diario sern introducidos nuevos datos en la aplicacin, los cuales deben ser almacenados y posteriormente
mostrados de forma resumida y visual. Esto planteaba dos dificultades inmediatas.

Necesidad de un contenedor de objetos donde almacenar la informacin.

Intercambio de informacin entre Bar-Chart y Control Board.

A pesar de la potencia de Microsoft Excel, este programa no deja de ser un instrumento pensado para realizar
clculos y no para la gestin de datos. Por ejemplo, Microsoft Access estara mucho ms indicado para
recopilar y organizar informacin, ya que es un programa especfico para la gestin de bases de datos (DBMS).

5.2.2.3

Programacin de Bar-Chart

Como ya se ha mencionado anteriormente, se fueron incorporando de forma gradual nuevas caractersticas a


la hoja de clculo primitiva donde se haba elaborado el Bar-Chart. A modo de resumen, a continuacin se
muestra una tabla con las funcionalidades ms relevantes que han sido aadidas. A lo largo de este apartado
se irn justificando cada una de estas caractersticas junto con una breve descripcin de su utilidad y
funcionamiento.
El cdigo de programacin especfico que controla cada una de estas caractersticas no se incluye para no
sobrecargar el documento. El cdigo de programacin completo de Bar-Chart y Control Board se encuentra
disponible en el Anexo 3 de este proyecto.
Tabla 1 Funcionalidades del Bar-Chart
Funcionalidad

Interfaz con el usuario

Automatizacin de coloreado de celdas

Botones de comando

Registro de incidencias

Formulario

Cierre de incidencias

Casilla de verificacin

Resumen de incidencias

Hoja de clculo. Tabla

Pareto23 de Incidencias

Grficos y filtros

Control de calendario

Calendario

Adaptacin del Bar-Chart a la hora de llegada del elemento

Cuadro de texto y botn de comando

Porcentaje de avance de las operaciones

Cuadro combinado

Cierre automtico tras inactividad

Cuadro de mensaje

Estado global de la Fase

Cuadro combinado

Estado de las operaciones

Cuadro combinado

23 Grfico de sectores que muestra la frecuencia de cada tipo de incidencia. Toma su nombre del principio de Pareto, tambin conocido
como la regla 80-20.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

41

Automatizacin de coloreado de celdas

Aprovechando el criterio de colores ya establecido con el que se cumplimentaban los Bar-Chart en papel24,
surgi la idea de trasladar la forma de colorear en el papel al formato digital. El mtodo hallado consiste en
seleccionar aquellas celdas que quieran editarse y luego pulsar un botn del color deseado. Esta caracterstica
se programa fcilmente mediante una pequea macro que modifica el formato de una seleccin. Adems de
los botones verde y rojo, se insert un botn para borrar que realiza el procedimiento inverso devolviendo a la
casilla el formato predeterminado.

Figura 5-3. Botones Verde, Rojo y Borrar. Fuente: Elaboracin propia.

Registro de incidencias

Adems de recoger las desviaciones respecto de la planificacin del trabajo que pudieran producirse, es objeto
del Bar-Chart dar informacin sobre la causa provoca dicho desajuste. De este modo, el siguiente avance fue
habilitar el registro de incidencias en la aplicacin. Inicialmente, se opt por incluir un nuevo botn para crear
incidencias que al ser pulsado mostraba un pequeo formulario donde anotar el nmero de operacin, el tipo
de incidencia, la causa, la duracin y una breve descripcin si fuese necesario; todos estos datos son guardados
en la hoja del libro denominada Incidencias.

Figura 5-4. Formulario para crear nuevas incidencias. Fuente: Elaboracin propia.

24

Cfr. cap. 4, apartado 4.1.1 Funcionamiento del Bar-Chart en papel.

Desarrollo de Bar-Chart Digital

42

Cierre de incidencias

Con posterioridad, se aadieron en el propio Bar-Chart las incidencias asociadas a cada operacin mediante
cuadros combinados, as como la opcin de marcar si el problema haba sido resuelto o no utilizando casillas
de verificacin; aquellas operaciones que tengan una incidencia abierta son marcadas en color rojo para
permitir una rpida deteccin.

Figura 5-5. Cierre de incidencias. Fuente: Elaboracin propia.

Resumen y Pareto de incidencias

En la hoja Incidencias de cada libro se renen todas las incidencias recogidas durante el paso del avin en
cuestin por cada una de las fases, de esta forma al finalizar un HTP las incidencias surgidas a lo largo del
montaje aparecern resumidas en dicha hoja. Mediante el uso de grficos de columna y circular se han
presentado estas incidencias de forma esquemtica y visual, tambin se han incorporado filtros de tablas para
dar la posibilidad de cribar las incidencias segn interese.

Figura 5-6. Hoja Incidencias del Bar-Chart. Fuente: Elaboracin propia.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

43

Control de calendario

A la hora de cumplimentar el Bar-Chart digital es imprescindible anotar la fecha y el turno en el cual se han
realizado las operaciones. Una posibilidad era dejar que la fecha se introdujera mediante el teclado, pero
siguiendo la lnea de facilitar el manejo de la aplicacin se decidi aadir un control de calendario. Este es
control ActiveX adicional y est disponible entre los archivos de Windows.

Figura 5-7. Control de calendario. Fuente: Elaboracin propia.

Adaptacin del Bar-Chart a la hora de llegada del elemento

Con frecuencia, en los Bar-Chart en papel un retraso en la hora de llegada del HTP distorsionaba todo el
seguimiento del elemento ya que la hora prevista de inicio del trabajo est fijada al principio del turno. Para
contemplar esta circunstancia, la versin digital incluye un campo donde introducir la hora de llegada del
HTP. Segn este valor, se retrasa automticamente toda la planificacin.

Figura 5-8. Adaptacin del Bar-Chart a la hora de llegada del elemento. Fuente: Elaboracin propia.

Porcentaje de avance de las operaciones

La factora de San Pablo ya tena desarrollada y puesta en funcionamiento una primera versin de Bar-Chart
digital en el entorno de MS Excel acorde a sus necesidades. Se organiz una visita a las instalaciones de la FAL
con el objeto de tomar ideas que pudieran ser aplicadas en los Bar-Chart de los programas de Tablada.
Una propiedad que result interesante fue que cada operacin posea un indicador acerca del grado de avance
aproximado del trabajo ya ejecutado. En otras palabras, se especificaba de forma explcita si cada operacin se
encontraba realizada hasta un 25%, 50%, 75% o completa al 100%. La finalidad de especificar este dato es
evitar malinterpretaciones acerca de si una operacin est terminada o no, ya que la informacin aportada por
el cronograma tan solo hace referencia al tiempo invertido en una operacin. Finalmente, esta funcin se
aadira ms tarde como mejora en el Bar-Chart para Tablada.

Desarrollo de Bar-Chart Digital

44

Figura 5-9. Porcentaje de avance por operacin. Fuente: Elaboracin


propia.

Cierre automtico tras inactividad

El acceso a los archivos queda abierto a todo aquel que disponga de acceso a la carpeta en red, por tanto, hay
que contemplar la posibilidad de que un usuario intente acceder a uno de los libros de Excel en red mientras
este est siendo editado por otro usuario. Si se diera dicha circunstancia, el acceso al libro queda restringido
automticamente por Excel al modo de solo lectura. Como se explica en el prximo apartado25, no es viable
utilizar la opcin de uso compartido de libros de Excel la cual habilita que dos usuarios modifiquen al mismo
tiempo un archivo. En concecuencia, hay que evitar que un Bar-Chart pueda quedarse abierto de forma
indefinida.Con este fin, se incorpor a la aplicacin una macro26 que guarda y cierra de forma automtica el
libro de Excel tras un periodo de inactividad. Se muestran por pantalla sendos avisos al abrir la aplicacin y
antes de cerrarla para advertir al usuario de la aplicacin.

Figura 5-10. Aviso de cierre automtico tras inactividad. Fuente: Elaboracin propia.

Figura 5-11. Cierre automtico tras inactividad. Fuente: Elaboracin propia.

25
26

Apartado 5.3 Conexin entre Bar-Chart y Control Board


Esta macro fue cedida por parte la factora de San Pablo.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

45

Estado global de la Fase

Para evitar cualquier tipo de duda, se incorpor un cuadro combinado al principio del Bar-Chart de cada fase
donde se indica el estado pendiente, en curso, cerrado o de bloqueo de la fase.

Figura 5-12. Estado global de la fase. Fuente: Elaboracin propia.

Estado de las operaciones

Aprovechando el acceso remoto a la aplicacin, se solicit al Departamento de Control de Produccin27 que


marcara en el Bar-Chart aquellas operaciones que no pudieran ser ejecutadas debido a una falta o retraso del
suministro de piezas. A estos efectos, se incluy un estado de falta F para cada operacin.
Por ltimo, se decidi aadir a cada operacin la posibilidad de indicar si una incidencia haba provocado un
paro en el trabajo del operario o punto de bloqueo PB o si haba provocado una situacin de urgencia U.

Figura 5-13. Estado de las operaciones F, PB, U. Fuente: Elaboracin propia.


Estas son las principales caractersticas aadidas al Bar-Chart digital, la experiencia piloto de la aplicacin en el
rea HTP F7X determinar la utilidad real de estas funcionalidades. Los resultados obtenidos a partir de la
puesta a punto de la herramienta se analizan en el prximo captulo.

27

Cfr. cap. 1 apartado 1.3 mbito del proyecto

Desarrollo de Bar-Chart Digital

46

5.2.3

Programacin de Control Board

Esta herramienta se encuentra en un libro de Excel independiente, se compone de tres hojas distintas
denominadas Control Board Visual, Total Incidencias y Tabla Dinmica respectivamente.
Como se ha comentado con anterioridad, esta herramienta ofrece una visin global de la lnea. Para ello, en la
pestaa principal llamada Control Board Visual se ha representado en un grfico el avance real de las cuatro
fases del HTP y el horizonte temporal del Takt Time en das. Una lnea vertical de color rojo indica el avance
terico que deberan tener las fases en el da actual. Al introducir el MSN en una de las fases, la aplicacin lee
de forma inmediata el avance real de dicha fase registrado en el Bar-Chart del avin correspondiente. Adems,
al hacer clic sobre el grfico se muestra una breve descripcin de las tareas que se ejecutan en el estadio de la
fase indicada y tambin se incorpora un botn para actualizar el grfico. De esta forma, resulta sumamente
sencillo identificar desajustes en el ritmo de produccin del rea.

Figura 5-14. Hoja Control Board Visual con el avance de la produccin. Fuente: Elaboracin
propia.
Asimismo, el Control Board incorpora en la hoja llamada Total Incidencias el histrico de todas las incidencias
recogidas en cada fase de todos los elementos producidos, cada vez que se introduce una incidencia en uno de
los Bar-Chart la informacin es tambin grabada en el Control Board como se analizar en el Apartado 2.6. El
objetivo es dar apoyo a la toma de decisiones en el rea a medio y largo plazo en base al anlisis de las causas
de aquellas incidencias ms recurrentes. Para facilitar este estudio, se ha insertado en otra pestaa una tabla
dinmica de Excel que permite gestionar todos los datos recogidos en el histrico de incidencias. Tambin se
han incluido un grfico de barras y otro circular dinmicos que representan la informacin filtrada en la tabla.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

47

Figura 5-15. Histrico de incidencias. Fuente: Elaboracin


propia.
Como puede observarse en la figura algunas incidencias estn escritas en color rojo, estas se corresponden con
las ltimas incidencias aadidas al histrico. Una vez se actualice el Control Board estas incidencias aparecern
escritas con la fuente predeterminada.
Para dar visibilidad a la informacin recogida sobre las incidencias, se ha utilizado una tabla dinmica
asociada a dos grficos, de barras y circular. Esta herramienta resume, analiza y presenta los datos de forma
interactiva de acuerdo a los criterios que se deseen, apoyando a una toma de decisiones a medio y largo plazo
fundamentada.

Figura 5-16. Tabla y grficos dinmicos. Fuente: Elaboracin propia.

48

Desarrollo de Bar-Chart Digital

5.3 Conexin entre Bar-Chart y Control Board


Como se ha comentado, uno de los hndicap de Excel respecto de las necesidades del Bar-Chart digital es que
no fue diseado para gestionar el intercambio de informacin de unos archivos a otros. Fue preciso estudiar
varias alternativas hasta encontrar una solucin para conseguir conectar Bar-Chart y Control Board.
El mtodo ms inmediato y evidente era hacer dicho intercambio mediante programacin en VBA. Este
lenguaje permite abrir, cerrar y guardar cualquier archivo Excel conocida la direccin de la carpeta en donde
est almacenado, se puede fcilmente copiar y pegar el contenido de cualquier rango de celdas ya sea dentro
del mismo libro o entre libros distintos e incluso permite bloquear y desbloquear mediante contrasea hojas o
archivos. Sin embargo, al hacer distintos ensayos con dos archivos en red se detect un impedimento: si otro
usuario se encontraba utilizando el libro de destino de la informacin, VBA produca un error al detectar el
archivo abierto. Aunque es posible detectar mediante VBA si un libro est siendo usado o no y quizs fuese
plausible la idea de copiar los datos cuando el libro estuviera disponible, la complejidad de la programacin
que implicara hace descartar esta opcin.
A sabiendas de que Excel tampoco fue pensado para que varios usuarios modifiquen un libro al mismo
tiempo, la alternativa ms lgica era intentar habilitar esta opcin. Excel ofrece la posibilidad de crear libros
compartidos y colocarlos en una ubicacin de red donde varias personas puedan editar el contenido a la vez.
El propietario del libro compartido, puede administrarlo quitando usuarios del mismo y resolviendo los
cambios que estn en conflicto con otros (http://office.microsoft.com/). Sin embargo, al compartir un libro se
pierden ciertas funciones de Excel que son de utilidad para la aplicacin como combinar celdas o dividir
celdas combinadas, crear o cambiar grficos o informes de grfico dinmico, proteger o desproteger hojas del
libro de clculo, proteger libros, etctera. En consecuencia, la opcin de compartir los libros quedaba anulada.
Encontrndose el desarrollo de la aplicacin en esta coyuntura, surgi la idea de crear un libro de Excel
intermedio entre Bar-Chart y Control Board que hiciese la funcin de almacn de informacin. Este archivo
permanecera siempre cerrado y tan solo sera abierto, modificado y cerrado por los comandos del cdigo
VBA: cada vez que se introdujera una incidencia en algn Bar-Chart sera tambin copiada en el almacn
intermedio para ms tarde ser trasladada al Control Board en el momento en que este fuera abierto. Dicho
archivo se ubica tambin en la carpeta en red y ha sido denominado como Almacn Incidencias.
Del mismo modo que con las funcionalidades del Bar-Chart y Control Board, ser la puesta en marcha de la
aplicacin la que determine la conveniencia de las soluciones elegidas. Esta y otras cuestiones relacionadas con
el periodo de pruebas de la herramienta son tratadas en detalle en el siguiente captulo.

6 PERIODO DE PRUEBAS

lo largo de dos semanas se someti la aplicacin a un periodo de pruebas con el objetivo de detectar
posibles fallos en el funcionamiento as como recabar opiniones acerca de la adecuacin de las
funcionalidades implementadas y del grado de simplicidad en referencia al manejo de la herramienta.

6.1 Instrucciones de uso


Antes de iniciar el periodo de pruebas de la aplicacin era preciso dar una formacin especfica acerca de
cmo utilizar el Bar-Chart digital y elaborar un estndar28 que explicase paso a paso cmo registrar la
informacin. De nuevo, deban ser instrucciones muy claras y visuales que sirvieran como recordatorio de una
formacin previamente recibida. A continuacin se enumeran los pasos a seguir:

Comprobar que el nmero de avin y fase son correctos

Cerrar aquellas incidencias que hayan sido resueltas

Introducir la fecha y turno correspondientes

Identificar las operaciones ejecutadas durante el turno

Completar cada operacin con el grado de avance alcanzado

Rellenar en color verde o rojo las horas incurridas siguiendo el estndar establecido

Abrir nuevas incidencias surgidas durante el turno y cumplimentar el formulario


correspondiente

Guardar y cerrar la aplicacin

Figura 6-1. Instrucciones de uso del Bar-Chart digital. Fuente: Elaboracin propia.

28

Este estndar se encuentra en el Anexo 2 del proyecto

49

Periodo de Pruebas

50

6.2 Inicializacin de la aplicacin en Fase III y Fase IV


Se cre una nueva carpeta dentro de la red local de la factora destinada a albergar la aplicacin, a ella tendran
acceso tanto el personal de taller como los responsables de cada departamento que apoyan la produccin del
rea HTP F7X. Dado que no todos los operarios posean un usuario para acceder a los ordenadores de la
planta, se decidi aprovechar la existencia de un usuario genrico que serva al personal de taller para entrar
en los ordenadores y utilizar SAP. As, dndole permiso a este usuario genrico para acceder a la carpeta en
red todos los operarios podan entrar en la aplicacin.
Una vez finalizados los preparativos, se convoc una reunin con todas aquellas personas que iban a utilizar
la herramienta, a excepcin de los operarios de los que solo fueron convocados los team leader, para explicar
con detalle el funcionamiento del Bar-Chart digital. Con posterioridad, se dara una formacin especfica al
personal de taller en grupos de dos o tres personas.
Debido a desajustes en la correspondencia entre las operaciones previstas en los Bar-Chart de las fases primera
y segunda y los procesos reales, se opt por comenzar la experiencia piloto solamente en Fase III y Fase IV.
Durante este periodo de pruebas, al final de cada turno los responsables del departamento de Lean
Manufacturing del rea asistan a los operarios en el manejo de la aplicacin.

6.3 Dificultades de funcionamiento


El periodo de puesta en marcha de la herramienta puso en relieve varios inconvenientes que no haban sido
contemplados a lo largo de la etapa de diseo.
Un primer obstculo detectado fue la confusin entre tiempo estndar y tiempo incurrido real a la hora de
cumplimentar el cronograma. Para solucionarlo se protegieron contraescritura las filas correspondientes a las
operaciones planificadas y se dejaron en color blanco, adems se aadi el nmero de cada operacin a la
derecha su planificacin.

Figura 6-2. Filas dedicadas a tiempo estndar y tiempo real incurrido en el cronograma. Fuente:
Elaboracin propia.

Desarrollo e Implementacin de Aplicacin para el Seguimiento Visual de la Produccin

51

Aunque se incluye una breve descripcin de cada operacin junto con su cdigo P-N29, se encontr dificultad
en la identificacin de algunas tareas lo que imposibilitaba cumplimentar el Bar-Chart adecuadamente. Para
evitar esta circunstancia se incluy en la carpeta en red un archivo con las instrucciones SOI de las
operaciones, donde vienen detalladas y ordenadas segn dicho cdigo P-N.

Figura 6-3.
propia.

Cdigos P-N y descripcin de las operaciones. Fuente: Elaboracin

6.4 Crtica de la aplicacin


En general, la aplicacin ha tenido muy buena aceptacin entre los operarios, quienes valoran el Bar-Chart
digital ms sencillo de cumplimentar que la versin en papel, este es sin duda un indicador primordial de
haber realizado un adecuado diseo de la herramienta.
Una vez en marcha la experiencia piloto, la eficacia del seguimiento de la produccin a travs del Bar-Chart
qued patente. Rpidamente comenz a observarse cmo contratiempos en determinadas operaciones
afectaban al transcurso del resto de la produccin. Esta variabilidad se traduce en ltima instancia bien en
coste de horas extra de los operarios o bien en retrasos en la fecha de entrega del HTP a la fase posterior. El
potencial que ofrece la aplicacin reside, precisamente, en registrar dichas incidencias junto con sus causas,
permitiendo realizar un posterior anlisis que ponga en relieve los problemas reales de la lnea.
Durante el perodo de pruebas tambin se detectaron algunas ventajas que no haban sido contempladas a lo
largo de la etapa de desarrollo del proyecto. Se comprob que llevar a cabo el registro de incidencias a travs
de la aplicacin es ms efectivo que hacerlo en las reuniones diarias de los paneles SQCDP, en el primer caso
los trabajadores se decidan a anotar problemas que normalmente no eran comentados en el transcurso de las
reuniones ordinarias. Con el objetivo de sacar ventaja de esta circunstancia, se ha considerado utilizar la
aplicacin para elaborar informes con las ltimas incidencias recogidas y as apoyar a los GNT con un
documento que facilite el seguimiento de las incidencias durante las reuniones SQCDP.
Con respecto al Control Board, el seguimiento comparado del avance de la produccin en cada fase todava
tiene margen de mejora. A pesar de que aporta el dato real del estado de avance de cada fase, visualmente
podra perfeccionarse. Se propuso desde los usuarios que la aplicacin representara no solo la fase actual en la
que se encuentra cada elemento, sino todo el recorrido de los elementos a travs de las cuatro fases del

29

El cdigo P-N, Part Number o nmero de parte identifica de forma inequvoca a una operacin

Periodo de Pruebas

52

montaje. En consecuencia, comenz a desarrollarse una segunda versin30 de esta hoja del Production Control
Board siguiendo las recomendaciones recibidas.

Figura 6-4. Nueva versin de la hoja Control Board Visual para el seguimiento
comparado del avance de la produccin. Fuente: Elaboracin propia.

En definitiva, la experiencia piloto ha servido para corroborar haber realizado un buen diseo de la aplicacin
y poner de manifiesto las posibilidades y ventajas que la versin digital del Bar-Chart ofrece. En consecuencia,
puede constatarse que la aplicacin ha superado con xito los objetivos marcados.

30

Esta actualizacin de la herramienta todava se encuentra en vas de desarrollo

7 CONCLUSIONES

e ha desarrollado la primera experiencia en Tablada de un seguimiento de la produccin a travs de una


herramienta digital. A pesar de que el proyecto tiene aplicacin en cualquier rea de la factora, tan solo
se ha realizado la implantacin de la aplicacin en el programa aeronutico HTP del Falcon 7X.

As mismo, se ha comprobado el papel que Lean Manufacturing juega en un entorno productivo real y la
relacin entre dicha filosofa y el seguimiento de la produccin. En este sentido, las herramientas de
seguimiento productivo implementadas por parte del Departamento de Lean Manufacturing, los paneles
SQCDP y los Bar-Chart, se encuentran en consonancia con tres de los pilares de la filosofa Lean como son la
gestin visual, la estandarizacin y la mejora continua.
En particular, los Bar-Chart diseados y puestos en prctica en este trabajo permitieron llevar un seguimiento
del avance de la produccin, comparando la planificacin del trabajo con la ejecucin real de las tareas de una
forma visual e intuitiva. En el mismo sentido, se ha comprobado que el funcionamiento del Bar-Chart en papel
conlleva varios inconvenientes que son superados con la versin digital de la herramienta, la cual adems
ampla la utilidad del Bar-Chart con nuevas funcionalidades como el Control Board.
La aplicacin que se implant en el proceso de produccin descrito en este trabajo con la herramienta digital
diseada en el mismo permiti la consecucin de los siguientes resultados.

Registro y captacin de datos en tiempo real sobre la situacin y el grado de avance de cada lnea
de produccin

Comparacin de la informacin recogida con el plan de produccin estndar y con el grado de


avance esperado en cada momento

Toma de decisiones eficaces e inmediatas sobre la asignacin de recursos a las tareas segn
necesidad

Deteccin de forma visual de las desviaciones de relevancia respecto de la planificacin que


puedan impactar en el resto de la lnea

Sensibilizacin de los operarios y el resto de personas implicadas en el proceso productivo de la


importancia de cumplir con el estndar como medio para alcanzar los objetivos fijados a medio y
largo plazo

A corto y medio plazo se plantean dos principales retos. El siguiente paso consiste en la aplicacin de la
herramienta al resto de programas de la factora, para ello ser necesario crear nuevos archivos con las
operaciones que correspondan a partir del Bar-Chart digital diseado y formar a los nuevos usuarios de la
aplicacin. Ms adelante, se deber estudiar la posibilidad de realizar un seguimiento de la produccin a nivel
micro, operacin por operacin, detectando las desviaciones producidas respecto de la planificacin del
trabajo de cada operario de forma individualizada.
En resumen, adems de atajar los despilfarros asociados a los Bar-Chart en papel, la aplicacin ha logrado
simplificar la recogida de datos y dar mayor visibilidad al estado de la lnea. Sin duda, tambin permite
detectar las posibles desviaciones de la produccin con celeridad y facilita la gestin de los recursos, lo que sin
duda mejorar el rendimiento global del rea a medio y largo plazo. Por otro lado, contribuye a instaurar la
filosofa de Lean Manufacturing ya que fomenta la participacin y cooperacin de todo el personal, pone de
manifiesto la importancia de la estandarizacin y la gestin visual y, por ltimo pero no por ello menos
importante, impulsa la mejora continua del proceso productivo.
Una vez finalizado el periodo de prcticas31, en el rea HTP F7X de Tablada se prosigui con la implantacin
del Bar-Chart digital. Actualmente, la herramienta se encuentra en funcionamiento en las cuatro fases
permitiendo realizar el seguimiento de la produccin del rea al completo.

31

Cfr. cap. 1, apartado 1.2 Objeto del proyecto

53

BIBLIOGRAFA
Porter, Michael E. Competitive advantage of nations: creating and sustaining superior performance. s.l. : Simon and
Schuster, 2011.
Acosta, P. MS Excel 2007 con Programacin de Macros en VBA. 2010.
Chinowsky, B. http://msdn.microsoft.com/. [En lnea] SDK Bridge, 2009.
Khler, K. La mquina que cambi el mundo cumpli diez aos. s.l. : Sociologa del trabajo, 2001.
P. Hines, D. Taylor. Going Lean. Cardiff : Lean Enterprise Research Centre, 2000.
Williams, K. Against Lean Production. s.l. : Economy and Society, 1992. Vol. 21.
Rother, M. Learning to see: value-stream mapping to create and eliminate muda. The Lean Enterprise Institute, 2003.
Suzaki. The New Manufacturing Challenge: Techniques for Continuous Improvement. New York, 1987.
Hirano, Hiroyunki 5 pilares de la fbrica visual: La fuente para la implantacin de las 5S. 1998.
http://office.microsoft.com/. [En lnea] [Citado el: 24 de Mayo de 2014]
http://www.airbus-group.com/. [En lnea] [Citado el: 11 de Mayo de 2014].
http://www.airbusmilitary.com/. [En lnea] [Citado el: 11 de Mayo de 2014].
http://www.dassault-aviation.com/. [En lnea] [Citado el: 13 de Mayo de 2014]

54

ANEXO 1
Acrnimos:
AC: Aircraft
EADS: European Aerospace, Defense & Space Corporation
EPI: Equipo de Proteccin Individual
FAL: Final Assembly Line
GNT: Grupo Natural de Trabajo
HNC: Hoja de No Conformidad
HTP: Horizontal Tail Plane
ID: Informe de Discrepancias
KPI: Key Performance Indicator
LT: Lead Time
MSN: Master Serial Number
MRO: Maintenance, Repair and Overhaul
MRTT: Multi Role Tanker Transport
OP: Orden de produccin
P/N: Part Number
PPS: Practical Problem Solving
SMED: Single Minute Exchange of Die
SOI: Standard Operation Instruction
TPM: Total Productive Maintenance
TT: Takt Time
VSM: Value Stream Mapping

55

ANEXO 2
Instrucciones de uso del Bar-Chart digital.

56

Seleccin

3 Escribir fecha y turno

2 Cerrar incidencias

4 Identificar operaciones
1 COMPROBAR AVIN Y FASE.

8 CERRAR Y GUARDAR
5 Completar avance

Clic para colorear

Completar formulario

7 Abrir nuevas incidencias

57

6 Rellenar horas incurridas (1 casilla = media hora)

ANEXO 3
Cdigo de programacin.

58

Bar-Chart:

Hoja1 - 1
Private Sub mover_rejilla()
Set FASE1 = ActiveWorkbook.Worksheets("TAKT 1")
Application.ScreenUpdating = False
FASE1.Activate
lastrow = FASE1.Range("A:A").End(xlDown).row
inicio_real = Application.WorksheetFunction.Match("DIA 1",
FASE1.Range("A5:IV5"), 0)
inicio = Range("L4")
hora_inicio = TextBox1
On Error GoTo Salir
If hora_inicio >= 15 Then
inicio2 = inicio_real + (hora_inicio - 15) * 2
FASE1.Range("AB7") = "T"
ElseIf hora_inicio < 15 And hora_inicio >= 7 Then
inicio2 = inicio_real + (hora_inicio - 7) * 2
FASE1.Range("AB7") = "M"
Else
GoTo Salir
End If
Range(Cells(8, inicio), Cells(lastrow, 1000)).Copy
Range("L4") = inicio2
Cells(8, inicio2).PasteSpecial xlPasteValues
If hora_inicio <> "7" And hora_inicio <> "15" Then
Range(Cells(8, inicio_real), Cells(lastrow, inicio2 - 1)).ClearContents
End If
Range("AJ6").Select
Exit Sub
Salir:
MsgBox ("Introduce la hora en el formato adecuado indicando nicamente las
dos cifras de la hora de
entrada del cajn (7-15, 15-23)")
Range("AJ6").Select
Exit Sub
End Sub
Private Sub CheckBox1_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox1.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox1.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox1.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox1_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox1.Value, 1, 1)
If busqueda = "A" Then
CheckBox1 = False
ElseIf busqueda = "C" Then
Hoja1 - 2
CheckBox1 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox2_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
59

60
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox2.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox2.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox2.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox2_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox2.Value, 1, 1)
If busqueda = "A" Then
CheckBox2 = False
ElseIf busqueda = "C" Then
CheckBox2 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox3_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox3.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox3.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox3.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox3_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
Hoja1 - 3
busqueda = Mid(FASE1.ComboBox3.Value, 1, 1)
If busqueda = "A" Then
CheckBox3 = False
ElseIf busqueda = "C" Then
CheckBox3 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox4_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox4.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox4.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click

61
ElseIf estado_incidencia = "CERRADA" And CheckBox4.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox4_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox4.Value, 1, 1)
If busqueda = "A" Then
CheckBox4 = False
ElseIf busqueda = "C" Then
CheckBox4 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox5.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox5.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox5.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox5_Change()
Hoja1 - 4
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox5.Value, 1, 1)
If busqueda = "A" Then
CheckBox5 = False
ElseIf busqueda = "C" Then
CheckBox5 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox6_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox6.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox6.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox6.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox6_Change()
Application.ScreenUpdating = False

62
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox6.Value, 1, 1)
If busqueda = "A" Then
CheckBox6 = False
ElseIf busqueda = "C" Then
CheckBox6 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox7_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox7.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox7.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox7.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja1 - 5
End Sub
Private Sub ComboBox65_Change()
End Sub
Private Sub ComboBox65_DropButtonClick()
ComboBox65.List = Array("PENDIENTE", "EN CURSO", "CERRADO", "BLOQUEADO")
estado = ComboBox65
Select Case estado
Case "PENDIENTE": ComboBox65.BackColor = RGB(243, 112, 41)
Case "EN CURSO": ComboBox65.BackColor = RGB(233, 230, 17)
Case "CERRADO": ComboBox65.BackColor = RGB(166, 206, 57)
Case "BLOQUEADO": ComboBox65.BackColor = RGB(227, 30, 48)
End Select
End Sub
Private Sub ComboBox7_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox7.Value, 1, 1)
If busqueda = "A" Then
CheckBox7 = False
ElseIf busqueda = "C" Then
CheckBox7 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox8_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox8.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox8.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox8.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

63
End Sub
Private Sub ComboBox70_Change()
End Sub
Private Sub ComboBox8_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox8.Value, 1, 1)
If busqueda = "A" Then
CheckBox8 = False
ElseIf busqueda = "C" Then
CheckBox8 = True
'Else
'CheckBox1 = False
End If
Hoja1 - 6
End Sub
Private Sub CheckBox9_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox9.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox9.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox9.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox9_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox9.Value, 1, 1)
If busqueda = "A" Then
CheckBox9 = False
ElseIf busqueda = "C" Then
CheckBox9 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox10_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox10.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox10.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox10.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox10_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox10.Value, 1, 1)
If busqueda = "A" Then
CheckBox10 = False

64
ElseIf busqueda = "C" Then
CheckBox10 = True
'Else
'CheckBox1 = False
Hoja1 - 7
End If
End Sub
Private Sub Checkbox11_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox11.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox11.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox11.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox11_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox11.Value, 1, 1)
If busqueda = "A" Then
CheckBox11 = False
ElseIf busqueda = "C" Then
CheckBox11 = True
'Else
'Checkbox11 = False
End If
End Sub
Private Sub Checkbox12_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox12.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox12.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox12.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox12_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox12.Value, 1, 1)
If busqueda = "A" Then
CheckBox12 = False
ElseIf busqueda = "C" Then
Hoja1 - 8
CheckBox12 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox13_Click()
Application.ScreenUpdating = False

65
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox13.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox13.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox13.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox13_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox13.Value, 1, 1)
If busqueda = "A" Then
CheckBox13 = False
ElseIf busqueda = "C" Then
CheckBox13 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox14_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox14.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox14.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox14.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox14_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox14.Value, 1, 1)
Hoja1 - 9
If busqueda = "A" Then
CheckBox14 = False
ElseIf busqueda = "C" Then
CheckBox14 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox15_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox15.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox15.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click

66
ElseIf estado_incidencia = "CERRADA" And CheckBox15.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox15_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox15.Value, 1, 1)
If busqueda = "A" Then
CheckBox15 = False
ElseIf busqueda = "C" Then
CheckBox15 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox16_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox16.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox16.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox16.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox16_Change()
Application.ScreenUpdating = False
Hoja1 - 10
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox16.Value, 1, 1)
If busqueda = "A" Then
CheckBox16 = False
ElseIf busqueda = "C" Then
CheckBox16 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox17_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox17.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox17.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox17.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox17_Change()

67
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox17.Value, 1, 1)
If busqueda = "A" Then
CheckBox17 = False
ElseIf busqueda = "C" Then
CheckBox17 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox18_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox18.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox18.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox18.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja1 - 11
Private Sub Combobox18_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox18.Value, 1, 1)
If busqueda = "A" Then
CheckBox18 = False
ElseIf busqueda = "C" Then
CheckBox18 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox19_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox19.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox19.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox19.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox19_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox19.Value, 1, 1)
If busqueda = "A" Then
CheckBox19 = False
ElseIf busqueda = "C" Then
CheckBox19 = True
'Else
'CheckBox1 = False

68
End If
End Sub
Private Sub Checkbox20_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox20.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox20.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox20.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja1 - 12
End Sub
Private Sub Combobox20_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox20.Value, 1, 1)
If busqueda = "A" Then
CheckBox20 = False
ElseIf busqueda = "C" Then
CheckBox20 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox21_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox21.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox21.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox21.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox21_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox21.Value, 1, 1)
If busqueda = "A" Then
CheckBox21 = False
ElseIf busqueda = "C" Then
CheckBox21 = True
'Else
'Checkbox21 = False
End If
End Sub
Private Sub Checkbox22_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox22.Value, 19)

69
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox22.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox22.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja1 - 13
Salir:
Exit Sub
End Sub
Private Sub Combobox22_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox22.Value, 1, 1)
If busqueda = "A" Then
CheckBox22 = False
ElseIf busqueda = "C" Then
CheckBox22 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox23_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox23.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox23.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox23.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox23_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox23.Value, 1, 1)
If busqueda = "A" Then
CheckBox23 = False
ElseIf busqueda = "C" Then
CheckBox23 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox24_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox24.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox24.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox24.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Hoja1 - 14
Call CommandButton5_Click

70
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox24_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox24.Value, 1, 1)
If busqueda = "A" Then
CheckBox24 = False
ElseIf busqueda = "C" Then
CheckBox24 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox25_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox25.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox25.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox25.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox25_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox25.Value, 1, 1)
If busqueda = "A" Then
CheckBox25 = False
ElseIf busqueda = "C" Then
CheckBox25 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox26_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox26.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox26.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Hoja1 - 15
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox26.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox26_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")

71
busqueda = Mid(FASE1.ComboBox26.Value, 1, 1)
If busqueda = "A" Then
CheckBox26 = False
ElseIf busqueda = "C" Then
CheckBox26 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox27_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox27.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox27.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox27.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox27_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox27.Value, 1, 1)
If busqueda = "A" Then
CheckBox27 = False
ElseIf busqueda = "C" Then
CheckBox27 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox28_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox28.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
Hoja1 - 16
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox28.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox28.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox28_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox28.Value, 1, 1)
If busqueda = "A" Then
CheckBox28 = False
ElseIf busqueda = "C" Then
CheckBox28 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox29_Click()

72
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox29.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox29.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox29.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox29_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox29.Value, 1, 1)
If busqueda = "A" Then
CheckBox29 = False
ElseIf busqueda = "C" Then
CheckBox29 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox30_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox30.Value, 19)
Hoja1 - 17
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox30.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox30.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox30_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox30.Value, 1, 1)
If busqueda = "A" Then
CheckBox30 = False
ElseIf busqueda = "C" Then
CheckBox30 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox31_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox31.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox31.Value = True Then

73
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox31.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox31_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox31.Value, 1, 1)
If busqueda = "A" Then
CheckBox31 = False
ElseIf busqueda = "C" Then
CheckBox31 = True
'Else
'Checkbox31 = False
End If
End Sub
Private Sub Checkbox32_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja1 - 18
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox32.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox32.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox32.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox32_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox32.Value, 1, 1)
If busqueda = "A" Then
CheckBox32 = False
ElseIf busqueda = "C" Then
CheckBox32 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox33_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox33.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox33.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox33.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub

74
Private Sub Combobox33_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox33.Value, 1, 1)
If busqueda = "A" Then
CheckBox33 = False
ElseIf busqueda = "C" Then
CheckBox33 = True
'Else
'CheckBox1 = False
End If
End Sub
Hoja1 - 19
Private Sub Checkbox34_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox34.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox34.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox34.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox34_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox34.Value, 1, 1)
If busqueda = "A" Then
CheckBox34 = False
ElseIf busqueda = "C" Then
CheckBox34 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox35_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox35.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox35.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox35.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox35_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox35.Value, 1, 1)
If busqueda = "A" Then
CheckBox35 = False
ElseIf busqueda = "C" Then
CheckBox35 = True

75
'Else
'CheckBox1 = False
End If
Hoja1 - 20
End Sub
Private Sub Checkbox36_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox36.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox36.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox36.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox36_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox36.Value, 1, 1)
If busqueda = "A" Then
CheckBox36 = False
ElseIf busqueda = "C" Then
CheckBox36 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox37_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox37.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox37.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox37.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox37_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox37.Value, 1, 1)
If busqueda = "A" Then
CheckBox37 = False
ElseIf busqueda = "C" Then
CheckBox37 = True
'Else
'CheckBox1 = False
Hoja1 - 21
End If
End Sub
Private Sub Checkbox38_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir

76
busqueda = Right(FASE1.ComboBox38.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox38.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox38.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox38_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox38.Value, 1, 1)
If busqueda = "A" Then
CheckBox38 = False
ElseIf busqueda = "C" Then
CheckBox38 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox39_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox39.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox39.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox39.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox39_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox39.Value, 1, 1)
If busqueda = "A" Then
CheckBox39 = False
ElseIf busqueda = "C" Then
Hoja1 - 22
CheckBox39 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox40_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox40.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox40.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox40.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"

77
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox40_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox40.Value, 1, 1)
If busqueda = "A" Then
CheckBox40 = False
ElseIf busqueda = "C" Then
CheckBox40 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox41_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox41.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox41.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox41.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox41_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox41.Value, 1, 1)
If busqueda = "A" Then
CheckBox41 = False
Hoja1 - 23
ElseIf busqueda = "C" Then
CheckBox41 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox42_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox42.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox42.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox42.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox42_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")

78
busqueda = Mid(FASE1.ComboBox42.Value, 1, 1)
If busqueda = "A" Then
CheckBox42 = False
ElseIf busqueda = "C" Then
CheckBox42 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox43_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox43.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox43.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox43.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox43_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
Hoja1 - 24
busqueda = Mid(FASE1.ComboBox43.Value, 1, 1)
If busqueda = "A" Then
CheckBox43 = False
ElseIf busqueda = "C" Then
CheckBox43 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox44_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox44.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox44.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox44.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox44_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox44.Value, 1, 1)
If busqueda = "A" Then
CheckBox44 = False
ElseIf busqueda = "C" Then
CheckBox44 = True
'Else
'CheckBox1 = False
End If
End Sub

79
Private Sub Checkbox45_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox45.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox45.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox45.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox45_Change()
Hoja1 - 25
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox45.Value, 1, 1)
If busqueda = "A" Then
CheckBox45 = False
ElseIf busqueda = "C" Then
CheckBox45 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox46_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox46.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox46.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox46.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox46_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox46.Value, 1, 1)
If busqueda = "A" Then
CheckBox46 = False
ElseIf busqueda = "C" Then
CheckBox46 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox47_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox47.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox47.Value = True Then

80
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox47.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja1 - 26
End Sub
Private Sub Combobox47_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox47.Value, 1, 1)
If busqueda = "A" Then
CheckBox47 = False
ElseIf busqueda = "C" Then
CheckBox47 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox48_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox48.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox48.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox48.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox48_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox48.Value, 1, 1)
If busqueda = "A" Then
CheckBox48 = False
ElseIf busqueda = "C" Then
CheckBox48 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox49_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox49.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox49.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox49.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja1 - 27
Salir:

81
Exit Sub
End Sub
Private Sub Combobox49_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox49.Value, 1, 1)
If busqueda = "A" Then
CheckBox49 = False
ElseIf busqueda = "C" Then
CheckBox49 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox50_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox50.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox50.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox50.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox50_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox50.Value, 1, 1)
If busqueda = "A" Then
CheckBox50 = False
ElseIf busqueda = "C" Then
CheckBox50 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox51_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox51.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox51.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox51.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
Hoja1 - 28
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox51_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox51.Value, 1, 1)
If busqueda = "A" Then
CheckBox51 = False
ElseIf busqueda = "C" Then

82
CheckBox51 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox52_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox52.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox52.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox52.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox52_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox52.Value, 1, 1)
If busqueda = "A" Then
CheckBox52 = False
ElseIf busqueda = "C" Then
CheckBox52 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox53_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox53.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox53.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
Hoja1 - 29
ElseIf estado_incidencia = "CERRADA" And CheckBox53.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox53_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox53.Value, 1, 1)
If busqueda = "A" Then
CheckBox53 = False
ElseIf busqueda = "C" Then
CheckBox53 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox54_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")

83
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox54.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox54.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox54.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox54_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox54.Value, 1, 1)
If busqueda = "A" Then
CheckBox54 = False
ElseIf busqueda = "C" Then
CheckBox54 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox55_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox55.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
Hoja1 - 30
If estado_incidencia = "ABIERTA" And CheckBox55.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox55.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox55_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox55.Value, 1, 1)
If busqueda = "A" Then
CheckBox55 = False
ElseIf busqueda = "C" Then
CheckBox55 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox56_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox56.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox56.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox56.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"

84
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox56_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox56.Value, 1, 1)
If busqueda = "A" Then
CheckBox56 = False
ElseIf busqueda = "C" Then
CheckBox56 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox57_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
Hoja1 - 31
busqueda = Right(FASE1.ComboBox57.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox57.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox57.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox57_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox57.Value, 1, 1)
If busqueda = "A" Then
CheckBox57 = False
ElseIf busqueda = "C" Then
CheckBox57 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox58_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox58.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox58.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox58.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox58_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

85
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox58.Value, 1, 1)
If busqueda = "A" Then
CheckBox58 = False
ElseIf busqueda = "C" Then
CheckBox58 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox59_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja1 - 32
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox59.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox59.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox59.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox59_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox59.Value, 1, 1)
If busqueda = "A" Then
CheckBox59 = False
ElseIf busqueda = "C" Then
CheckBox59 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox60_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox60.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox60.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox60.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox60_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox60.Value, 1, 1)
If busqueda = "A" Then
CheckBox60 = False
ElseIf busqueda = "C" Then
CheckBox60 = True
'Else
'CheckBox1 = False
End If
End Sub

86
Hoja1 - 33
Private Sub Checkbox61_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox61.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox61.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox61.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox61_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox61.Value, 1, 1)
If busqueda = "A" Then
CheckBox61 = False
ElseIf busqueda = "C" Then
CheckBox61 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox62_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox62.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox62.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox62.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox62_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox62.Value, 1, 1)
If busqueda = "A" Then
CheckBox62 = False
ElseIf busqueda = "C" Then
CheckBox62 = True
'Else
'CheckBox1 = False
End If
Hoja1 - 34
End Sub
Private Sub Checkbox63_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox63.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)

87
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox63.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox63.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox63_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox63.Value, 1, 1)
If busqueda = "A" Then
CheckBox63 = False
ElseIf busqueda = "C" Then
CheckBox63 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox64_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
On Error GoTo Salir
busqueda = Right(FASE1.ComboBox64.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox64.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox64.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox64_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = Worksheets("TAKT 1")
busqueda = Mid(FASE1.ComboBox64.Value, 1, 1)
If busqueda = "A" Then
CheckBox64 = False
ElseIf busqueda = "C" Then
CheckBox64 = True
'Else
'CheckBox1 = False
Hoja1 - 35
End If
End Sub
Private Sub CommandButton6_Click()
mover_rejilla
For Each rango In Range("Estandar")
If Not IsEmpty(rango) Then
rango.Select
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)

88
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
End If
Next
End Sub
Function IsFileOpen(filename As String)
Dim filenum As Integer, errnum As Integer
On Error Resume Next ' Turn error checking off.
filenum = FreeFile() ' Get a free file number.
' Attempt to open the file and lock it.
Open filename For Input Lock Read As #filenum
Close filenum ' Close the file.
errnum = Err ' Save the error number that occurred.
On Error GoTo 0 ' Turn error checking back on.
' Check to see which error occurred.
Select Case errnum
' No error occurred.
' File is NOT already open by another user.
Case 0
IsFileOpen = False
' Error number for "Permission Denied."
' File is already opened by another user.
Case 70
IsFileOpen = True
' Another error occurred.
Case Else
Error errnum
End Select
End Function
Private Sub DTPicker21_Change()
fecha = DTPicker21.Value
If ActiveCell.Offset(1, 0) = "Turno" Then
Hoja1 - 36
ActiveCell = fecha
End If
End Sub
Private Sub Worksheet_Activate()
ActiveWindow.Zoom = 86
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set FASE1 = Worksheets("TAKT 1")
Application.ScreenUpdating = False
col_avance25 = Application.WorksheetFunction.Match(25, FASE1.Range("A7:IV7"),
0)
Set KeyCells = FASE1.Range("avance")
On Error GoTo Salir
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
On Error GoTo Salir
If Target.Value2 = "X" Then
If Target.Offset(0, -1) = "" And Target.Column <> col_avance25 Then
Target.Offset(0, -1).Activate
ActiveCell.Value = "X"
'Offset(-1, 0).Value2 = "X"
End If
ElseIf Target.Value2 = "PB" Or Target.Value2 = "U" Then
FASE1.Range("M3") = Target.row
Load formincidencias
formincidencias.Show
'elseif target.Value2="F"
End If
End If
Exit Sub
Salir:
Exit Sub
End Sub

89
Private Sub CommandButton1_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Verde
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE1")
End If
End Sub
Private Sub CommandButton2_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Rojo
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE1")
End If
End Sub
Private Sub CommandButton3_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Gris
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE1")
End If
End Sub
Hoja1 - 37
Private Sub CommandButton4_Click()
Range("M3") = ClearContents
Load formincidencias
formincidencias.Show
End Sub
Private Sub CommandButton5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = ActiveWorkbook.Worksheets("TAKT 1")
incidencias.Activate
lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
''''''
FASE1.Activate
FASE1.ComboBox1.Clear
FASE1.ComboBox2.Clear
FASE1.ComboBox3.Clear
FASE1.ComboBox4.Clear
FASE1.ComboBox5.Clear
FASE1.ComboBox6.Clear
FASE1.ComboBox7.Clear
FASE1.ComboBox8.Clear
FASE1.ComboBox9.Clear
FASE1.ComboBox10.Clear
FASE1.ComboBox11.Clear
FASE1.ComboBox12.Clear
FASE1.ComboBox13.Clear
FASE1.ComboBox14.Clear
FASE1.ComboBox15.Clear
FASE1.ComboBox16.Clear
FASE1.ComboBox17.Clear
FASE1.ComboBox18.Clear
FASE1.ComboBox19.Clear
FASE1.ComboBox20.Clear
FASE1.ComboBox21.Clear
FASE1.ComboBox22.Clear
FASE1.ComboBox23.Clear
FASE1.ComboBox24.Clear
FASE1.ComboBox25.Clear
FASE1.ComboBox26.Clear
FASE1.ComboBox27.Clear
FASE1.ComboBox28.Clear
FASE1.ComboBox29.Clear
FASE1.ComboBox30.Clear
FASE1.ComboBox31.Clear
FASE1.ComboBox32.Clear
FASE1.ComboBox33.Clear
FASE1.ComboBox34.Clear
FASE1.ComboBox35.Clear
FASE1.ComboBox36.Clear

90
FASE1.ComboBox37.Clear
FASE1.ComboBox38.Clear
FASE1.ComboBox39.Clear
FASE1.ComboBox40.Clear
FASE1.ComboBox41.Clear
FASE1.ComboBox42.Clear
FASE1.ComboBox43.Clear
FASE1.ComboBox44.Clear
FASE1.ComboBox45.Clear
FASE1.ComboBox46.Clear
FASE1.ComboBox47.Clear
FASE1.ComboBox48.Clear
FASE1.ComboBox49.Clear
FASE1.ComboBox50.Clear
FASE1.ComboBox51.Clear
FASE1.ComboBox52.Clear
FASE1.ComboBox53.Clear
FASE1.ComboBox54.Clear
FASE1.ComboBox55.Clear
FASE1.ComboBox56.Clear
FASE1.ComboBox57.Clear
FASE1.ComboBox58.Clear
Hoja1 - 38
FASE1.ComboBox59.Clear
FASE1.ComboBox60.Clear
FASE1.ComboBox61.Clear
FASE1.ComboBox62.Clear
FASE1.ComboBox63.Clear
FASE1.ComboBox64.Clear
incidencias.Activate
For i = 34 To lastrow
If incidencias.Cells(i, 16) = "TAKT 1" Then
NOperacion = incidencias.Cells(i, 3)
If incidencias.Cells(i, 1) = "ABIERTA" Then
estado = "A"
Else
estado = "C"
End If
'Select Case NOperacion
'
'Case 1
If NOperacion = 1 Then
FASE1.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 2 Then
FASE1.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 3 Then
FASE1.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 4 Then
FASE1.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 5 Then
FASE1.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 6 Then
FASE1.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 7 Then
FASE1.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 8 Then
FASE1.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 9 Then
FASE1.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

91
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 10 Then
FASE1.ComboBox10.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 11 Then
FASE1.ComboBox11.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 12 Then
FASE1.ComboBox12.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 13 Then
FASE1.ComboBox13.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 14 Then
FASE1.ComboBox14.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 15 Then
FASE1.ComboBox15.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 16 Then
FASE1.ComboBox16.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 17 Then
Hoja1 - 39
FASE1.ComboBox17.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 18 Then
FASE1.ComboBox18.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 19 Then
FASE1.ComboBox19.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 20 Then
FASE1.ComboBox20.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 21 Then
FASE1.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 22 Then
FASE1.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 23 Then
FASE1.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 24 Then
FASE1.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 25 Then
FASE1.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 26 Then
FASE1.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 27 Then
FASE1.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 28 Then
FASE1.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)

" & incidencias.Cells(i, 6)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &

92
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 29 Then
FASE1.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 30 Then
FASE1.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 31 Then
FASE1.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 32 Then
FASE1.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 33 Then
FASE1.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 34 Then
FASE1.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 35 Then
FASE1.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 36 Then
FASE1.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 37 Then
FASE1.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 38 Then
FASE1.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 39 Then
FASE1.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 40 Then
FASE1.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 41 Then
FASE1.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 42 Then
FASE1.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
Hoja1 - 40
ElseIf NOperacion = 43 Then
FASE1.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 44 Then
FASE1.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 45 Then
FASE1.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 46 Then
FASE1.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 47 Then

" & incidencias.Cells(i, 6)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

93
FASE1.ComboBox47.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 48 Then
FASE1.ComboBox48.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 49 Then
FASE1.ComboBox49.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 50 Then
FASE1.ComboBox50.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 51 Then
FASE1.ComboBox51.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 52 Then
FASE1.ComboBox52.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 53 Then
FASE1.ComboBox53.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 54 Then
FASE1.ComboBox54.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 55 Then
FASE1.ComboBox55.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 56 Then
FASE1.ComboBox56.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 57 Then
FASE1.ComboBox57.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 58 Then
FASE1.ComboBox58.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 59 Then
FASE1.ComboBox59.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 60 Then
FASE1.ComboBox60.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 61 Then
FASE1.ComboBox61.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 62 Then
FASE1.ComboBox62.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 63 Then
FASE1.ComboBox63.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 64 Then
FASE1.ComboBox64.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
End If
End If
Next
FASE1.Activate
End Sub
Hoja1 - 41

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

94
Hoja10 - 1
Public Sub actualresumen()
Set wb = ThisWorkbook
Set resumen = wb.Worksheets("Resumen")
resumen.Activate
lastsaved = ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")
encurso = Application.WorksheetFunction.Match("EN CURSO",
resumen.Range("B10:B13"), 0)
encurso = encurso + 9
fase_encurso = resumen.Cells(encurso, 1)
If fase_encurso = "TAKT 1" Then
col = 1
fil = 33
ElseIf fase_encurso = "TAKT 2" Then
col = 24
fil = 33
ElseIf fase_encurso = "TAKT 3" Then
col = 1
fil = 49
ElseIf fase_encurso = "TAKT 4" Then
col = 24
fil = 49
End If
lastcol = Range(Cells(fil + 3, col), Cells(fil + 3, col +
21)).End(xlToRight).Column
lastcol = lastcol + col - 1
fecha = Mid(lastsaved, 1, 10)
a = WorksheetFunction.Round(resumen.Cells(fil + 3, lastcol - 1).Value, 2)
b = WorksheetFunction.Round(resumen.Cells(encurso, 13).Value, 2)
If a = b Then
Else
resumen.Cells(fil, lastcol).Value = fecha
resumen.Cells(fil + 3, lastcol + 1).Select
resumen.Cells(fil + 3, lastcol + 1) = resumen.Cells(encurso, 13)
End If
End Sub
Hoja3 - 1
Private Sub Worksheet_Change(ByVal Target As Range)
'''''''actualizar estado abierto/cerrado de las incidencias
Application.ScreenUpdating = False
Set ws = ActiveSheet
Set KeyCells = Sheets(2).Range("A:A")
fecha = Target.Offset(0, 1).Value
direccionarchivo = "C:\Users\usuario\Desktop\airbus\miguel gomez segura\copia
seguridad carpeta en
red 25 04 2014\Almacen Incidencias.xlsm"
On Error Resume Next
Workbooks(direccionarchivo).Save
Workbooks(direccionarchivo).Close
On Error GoTo 0
Workbooks.Open direccionarchivo
Workbooks("Almacen Incidencias.xlsm").Sheets(1).Activate
For Each rango In Sheets(1).Range("fechas")
If rango.Value = fecha Then
rango.Offset(0, -1).Value = Target.Value
Exit For
End If
Next
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
ws.Activate
Application.ScreenUpdating = True
End Sub
Hoja6 - 1
Private Sub Worksheet_Activate()
ActiveWindow.Zoom = 86
End Sub
Private Sub ComboBox91_DropButtonClick()
ComboBox91.List = Array("PENDIENTE", "EN CURSO", "CERRADO", "BLOQUEADO")
estado = ComboBox91
Select Case estado
Case "PENDIENTE": ComboBox91.BackColor = RGB(243, 112, 41)
Case "EN CURSO": ComboBox91.BackColor = RGB(233, 230, 17)
Case "CERRADO": ComboBox91.BackColor = RGB(166, 206, 57)
Case "BLOQUEADO": ComboBox91.BackColor = RGB(227, 30, 48)
End Select

95
End Sub
Private Sub mover_rejilla()
Set FASE2 = ActiveWorkbook.Worksheets("TAKT 2")
Application.ScreenUpdating = False
FASE2.Activate
lastrow = FASE2.Range("A:A").End(xlDown).row
inicio_real = Application.WorksheetFunction.Match("DIA 1",
FASE2.Range("A5:IV5"), 0)
inicio = Range("L4")
hora_inicio = TextBox1
On Error GoTo Salir
If hora_inicio >= 15 Then
inicio2 = inicio_real + (hora_inicio - 15) * 2
FASE2.Range("AB7") = "T"
ElseIf hora_inicio < 15 And hora_inicio >= 7 Then
inicio2 = inicio_real + (hora_inicio - 7) * 2
FASE2.Range("AB7") = "M"
Else
GoTo Salir
End If
Range(Cells(8, inicio), Cells(lastrow, 1000)).Copy
Range("L4") = inicio2
Cells(8, inicio2).PasteSpecial xlPasteValues
If hora_inicio <> "7" And hora_inicio <> "15" Then
Range(Cells(8, inicio_real), Cells(lastrow, inicio2 - 1)).ClearContents
End If
Range("AJ6").Select
Exit Sub
Salir:
MsgBox ("Introduce la hora en el formato adecuado indicando nicamente las
dos cifras de la hroa de
entrada del cajn (7-15, 15-23)")
Range("AJ6").Select
Exit Sub
End Sub
Private Sub CheckBox1_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox1.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox1.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
'incidencias.Cells(fila_incidencia, 17) = Now
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox1.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Hoja6 - 2
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox1_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox1.Value, 1, 1)
If busqueda = "A" Then
CheckBox1 = False
ElseIf busqueda = "C" Then
CheckBox1 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox2_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox2.Value, 19)

96
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox2.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox2.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox2_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox2.Value, 1, 1)
If busqueda = "A" Then
CheckBox2 = False
ElseIf busqueda = "C" Then
CheckBox2 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox3_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox3.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox3.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Hoja6 - 3
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox3.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox3_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox3.Value, 1, 1)
If busqueda = "A" Then
CheckBox3 = False
ElseIf busqueda = "C" Then
CheckBox3 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox4_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox4.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox4.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox4.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click

97
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox4_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox4.Value, 1, 1)
If busqueda = "A" Then
CheckBox4 = False
ElseIf busqueda = "C" Then
CheckBox4 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox5.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
Hoja6 - 4
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox5.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox5.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox5_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox5.Value, 1, 1)
If busqueda = "A" Then
CheckBox5 = False
ElseIf busqueda = "C" Then
CheckBox5 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox6_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox6.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox6.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox6.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox6_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox6.Value, 1, 1)

98
If busqueda = "A" Then
CheckBox6 = False
ElseIf busqueda = "C" Then
CheckBox6 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox7_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
Hoja6 - 5
busqueda = Right(FASE2.ComboBox7.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox7.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox7.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox7_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox7.Value, 1, 1)
If busqueda = "A" Then
CheckBox7 = False
ElseIf busqueda = "C" Then
CheckBox7 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox8_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox8.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox8.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox8.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox8_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox8.Value, 1, 1)
If busqueda = "A" Then
CheckBox8 = False
ElseIf busqueda = "C" Then
CheckBox8 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 6
End Sub

99
Private Sub CheckBox9_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox9.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox9.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox9.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox9_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox9.Value, 1, 1)
If busqueda = "A" Then
CheckBox9 = False
ElseIf busqueda = "C" Then
CheckBox9 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox10_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox10.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox10.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox10.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox10_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox10.Value, 1, 1)
If busqueda = "A" Then
CheckBox10 = False
ElseIf busqueda = "C" Then
CheckBox10 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 7
End Sub
Private Sub Checkbox11_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox11.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox11.Value = True Then

100
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox11.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox11_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox11.Value, 1, 1)
If busqueda = "A" Then
CheckBox11 = False
ElseIf busqueda = "C" Then
CheckBox11 = True
'Else
'Checkbox11 = False
End If
End Sub
Private Sub Checkbox12_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox12.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox12.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox12.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox12_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox12.Value, 1, 1)
If busqueda = "A" Then
CheckBox12 = False
ElseIf busqueda = "C" Then
CheckBox12 = True
'Else
Hoja6 - 8
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox13_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox13.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox13.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox13.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

101
End Sub
Private Sub Combobox13_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox13.Value, 1, 1)
If busqueda = "A" Then
CheckBox13 = False
ElseIf busqueda = "C" Then
CheckBox13 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox14_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox14.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox14.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox14.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox14_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox14.Value, 1, 1)
If busqueda = "A" Then
CheckBox14 = False
Hoja6 - 9
ElseIf busqueda = "C" Then
CheckBox14 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox15_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox15.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox15.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox15.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox15_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox15.Value, 1, 1)
If busqueda = "A" Then
CheckBox15 = False
ElseIf busqueda = "C" Then
CheckBox15 = True

102
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox16_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox16.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox16.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox16.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox16_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
Hoja6 - 10
busqueda = Mid(FASE2.ComboBox16.Value, 1, 1)
If busqueda = "A" Then
CheckBox16 = False
ElseIf busqueda = "C" Then
CheckBox16 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox17_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox17.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox17.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox17.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox17_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox17.Value, 1, 1)
If busqueda = "A" Then
CheckBox17 = False
ElseIf busqueda = "C" Then
CheckBox17 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox18_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir

103
busqueda = Right(FASE2.ComboBox18.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox18.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox18.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox18_Change()
Hoja6 - 11
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox18.Value, 1, 1)
If busqueda = "A" Then
CheckBox18 = False
ElseIf busqueda = "C" Then
CheckBox18 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox19_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox19.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox19.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox19.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox19_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox19.Value, 1, 1)
If busqueda = "A" Then
CheckBox19 = False
ElseIf busqueda = "C" Then
CheckBox19 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox20_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox20.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox20.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox20.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click

104
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja6 - 12
Private Sub Combobox20_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox20.Value, 1, 1)
If busqueda = "A" Then
CheckBox20 = False
ElseIf busqueda = "C" Then
CheckBox20 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox21_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox21.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox21.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox21.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox21_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox21.Value, 1, 1)
If busqueda = "A" Then
CheckBox21 = False
ElseIf busqueda = "C" Then
CheckBox21 = True
'Else
'Checkbox21 = False
End If
End Sub
Private Sub Checkbox22_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox22.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox22.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox22.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Hoja6 - 13
Exit Sub
End Sub
Private Sub Combobox22_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

105
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox22.Value, 1, 1)
If busqueda = "A" Then
CheckBox22 = False
ElseIf busqueda = "C" Then
CheckBox22 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox23_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox23.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox23.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox23.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox23_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox23.Value, 1, 1)
If busqueda = "A" Then
CheckBox23 = False
ElseIf busqueda = "C" Then
CheckBox23 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox24_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox24.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox24.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox24.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Hoja6 - 14
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox24_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox24.Value, 1, 1)
If busqueda = "A" Then
CheckBox24 = False
ElseIf busqueda = "C" Then
CheckBox24 = True
'Else
'CheckBox1 = False
End If
End Sub

106
Private Sub Checkbox25_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox25.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox25.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox25.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox25_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox25.Value, 1, 1)
If busqueda = "A" Then
CheckBox25 = False
ElseIf busqueda = "C" Then
CheckBox25 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox26_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox26.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox26.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox26.Value = False Then
Hoja6 - 15
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox26_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox26.Value, 1, 1)
If busqueda = "A" Then
CheckBox26 = False
ElseIf busqueda = "C" Then
CheckBox26 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox27_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox27.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)

107
If estado_incidencia = "ABIERTA" And CheckBox27.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox27.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox27_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox27.Value, 1, 1)
If busqueda = "A" Then
CheckBox27 = False
ElseIf busqueda = "C" Then
CheckBox27 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox28_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox28.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox28.Value = True Then
Hoja6 - 16
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox28.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox28_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox28.Value, 1, 1)
If busqueda = "A" Then
CheckBox28 = False
ElseIf busqueda = "C" Then
CheckBox28 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox29_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox29.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox29.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox29.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

108
End Sub
Private Sub Combobox29_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox29.Value, 1, 1)
If busqueda = "A" Then
CheckBox29 = False
ElseIf busqueda = "C" Then
CheckBox29 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox30_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox30.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
Hoja6 - 17
If estado_incidencia = "ABIERTA" And CheckBox30.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox30.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox30_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox30.Value, 1, 1)
If busqueda = "A" Then
CheckBox30 = False
ElseIf busqueda = "C" Then
CheckBox30 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox31_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox31.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox31.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox31.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox31_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox31.Value, 1, 1)
If busqueda = "A" Then
CheckBox31 = False
ElseIf busqueda = "C" Then

109
CheckBox31 = True
'Else
'Checkbox31 = False
End If
End Sub
Private Sub Checkbox32_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
Hoja6 - 18
busqueda = Right(FASE2.ComboBox32.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox32.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox32.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox32_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox32.Value, 1, 1)
If busqueda = "A" Then
CheckBox32 = False
ElseIf busqueda = "C" Then
CheckBox32 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox33_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox33.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox33.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox33.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox33_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox33.Value, 1, 1)
If busqueda = "A" Then
CheckBox33 = False
ElseIf busqueda = "C" Then
CheckBox33 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox34_Click()
Application.ScreenUpdating = False
Hoja6 - 19
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")

110
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox34.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox34.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox34.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox34_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox34.Value, 1, 1)
If busqueda = "A" Then
CheckBox34 = False
ElseIf busqueda = "C" Then
CheckBox34 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox35_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox35.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox35.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox35.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox35_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox35.Value, 1, 1)
If busqueda = "A" Then
CheckBox35 = False
ElseIf busqueda = "C" Then
CheckBox35 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 20
End Sub
Private Sub Checkbox36_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox36.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox36.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox36.Value = False Then

111
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox36_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox36.Value, 1, 1)
If busqueda = "A" Then
CheckBox36 = False
ElseIf busqueda = "C" Then
CheckBox36 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox37_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox37.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox37.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox37.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox37_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox37.Value, 1, 1)
If busqueda = "A" Then
CheckBox37 = False
ElseIf busqueda = "C" Then
CheckBox37 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 21
End Sub
Private Sub Checkbox38_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox38.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox38.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox38.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox38_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

112
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox38.Value, 1, 1)
If busqueda = "A" Then
CheckBox38 = False
ElseIf busqueda = "C" Then
CheckBox38 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox39_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox39.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox39.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox39.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox39_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox39.Value, 1, 1)
If busqueda = "A" Then
CheckBox39 = False
ElseIf busqueda = "C" Then
CheckBox39 = True
'Else
Hoja6 - 22
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox40_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox40.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox40.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox40.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox40_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox40.Value, 1, 1)
If busqueda = "A" Then
CheckBox40 = False
ElseIf busqueda = "C" Then
CheckBox40 = True
'Else
'CheckBox1 = False
End If

113
End Sub
Private Sub Checkbox41_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox41.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox41.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox41.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox41_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox41.Value, 1, 1)
If busqueda = "A" Then
CheckBox41 = False
ElseIf busqueda = "C" Then
CheckBox41 = True
Hoja6 - 23
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox42_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox42.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox42.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox42.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox42_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox42.Value, 1, 1)
If busqueda = "A" Then
CheckBox42 = False
ElseIf busqueda = "C" Then
CheckBox42 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox43_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox43.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)

114
If estado_incidencia = "ABIERTA" And CheckBox43.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox43.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox43_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox43.Value, 1, 1)
If busqueda = "A" Then
Hoja6 - 24
CheckBox43 = False
ElseIf busqueda = "C" Then
CheckBox43 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox44_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox44.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox44.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox44.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox44_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox44.Value, 1, 1)
If busqueda = "A" Then
CheckBox44 = False
ElseIf busqueda = "C" Then
CheckBox44 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox45_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox45.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox45.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox45.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:

115
Exit Sub
End Sub
Private Sub Combobox45_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja6 - 25
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox45.Value, 1, 1)
If busqueda = "A" Then
CheckBox45 = False
ElseIf busqueda = "C" Then
CheckBox45 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox46_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox46.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox46.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox46.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox46_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox46.Value, 1, 1)
If busqueda = "A" Then
CheckBox46 = False
ElseIf busqueda = "C" Then
CheckBox46 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox47_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox47.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox47.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox47.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja6 - 26
Private Sub Combobox47_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox47.Value, 1, 1)
If busqueda = "A" Then
CheckBox47 = False

116
ElseIf busqueda = "C" Then
CheckBox47 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox48_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox48.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox48.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox48.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox48_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox48.Value, 1, 1)
If busqueda = "A" Then
CheckBox48 = False
ElseIf busqueda = "C" Then
CheckBox48 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox49_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox49.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox49.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox49.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja6 - 27
End Sub
Private Sub Combobox49_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox49.Value, 1, 1)
If busqueda = "A" Then
CheckBox49 = False
ElseIf busqueda = "C" Then
CheckBox49 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox50_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

117
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox50.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox50.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox50.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox50_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox50.Value, 1, 1)
If busqueda = "A" Then
CheckBox50 = False
ElseIf busqueda = "C" Then
CheckBox50 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox51_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox51.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox51.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox51.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja6 - 28
Salir:
Exit Sub
End Sub
Private Sub Combobox51_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox51.Value, 1, 1)
If busqueda = "A" Then
CheckBox51 = False
ElseIf busqueda = "C" Then
CheckBox51 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox52_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox52.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox52.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox52.Value = False Then

118
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox52_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox52.Value, 1, 1)
If busqueda = "A" Then
CheckBox52 = False
ElseIf busqueda = "C" Then
CheckBox52 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox53_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox53.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox53.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox53.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Hoja6 - 29
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox53_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox53.Value, 1, 1)
If busqueda = "A" Then
CheckBox53 = False
ElseIf busqueda = "C" Then
CheckBox53 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox54_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox54.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox54.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox54.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox54_Change()
Application.ScreenUpdating = False

119
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox54.Value, 1, 1)
If busqueda = "A" Then
CheckBox54 = False
ElseIf busqueda = "C" Then
CheckBox54 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox55_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox55.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox55.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Hoja6 - 30
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox55.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox55_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox55.Value, 1, 1)
If busqueda = "A" Then
CheckBox55 = False
ElseIf busqueda = "C" Then
CheckBox55 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox56_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox56.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox56.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox56.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox56_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox56.Value, 1, 1)
If busqueda = "A" Then
CheckBox56 = False
ElseIf busqueda = "C" Then
CheckBox56 = True
'Else
'CheckBox1 = False
End If

120
End Sub
Private Sub Checkbox57_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox57.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
Hoja6 - 31
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox57.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox57.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox57_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox57.Value, 1, 1)
If busqueda = "A" Then
CheckBox57 = False
ElseIf busqueda = "C" Then
CheckBox57 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox58_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox58.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox58.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox58.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox58_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox58.Value, 1, 1)
If busqueda = "A" Then
CheckBox58 = False
ElseIf busqueda = "C" Then
CheckBox58 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox59_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
Hoja6 - 32
busqueda = Right(FASE2.ComboBox59.Value, 19)

121
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox59.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox59.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox59_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox59.Value, 1, 1)
If busqueda = "A" Then
CheckBox59 = False
ElseIf busqueda = "C" Then
CheckBox59 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox60_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox60.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox60.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox60.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox60_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox60.Value, 1, 1)
If busqueda = "A" Then
CheckBox60 = False
ElseIf busqueda = "C" Then
CheckBox60 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox61_Click()
Application.ScreenUpdating = False
Hoja6 - 33
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox61.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox61.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox61.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If

122
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox61_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox61.Value, 1, 1)
If busqueda = "A" Then
CheckBox61 = False
ElseIf busqueda = "C" Then
CheckBox61 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox62_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox62.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox62.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox62.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox62_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox62.Value, 1, 1)
If busqueda = "A" Then
CheckBox62 = False
ElseIf busqueda = "C" Then
CheckBox62 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 34
End Sub
Private Sub Checkbox63_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox63.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox63.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox63.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox63_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox63.Value, 1, 1)

123
If busqueda = "A" Then
CheckBox63 = False
ElseIf busqueda = "C" Then
CheckBox63 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox64_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox64.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox64.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox64.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox64_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox64.Value, 1, 1)
If busqueda = "A" Then
CheckBox64 = False
ElseIf busqueda = "C" Then
CheckBox64 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 35
End Sub
Private Sub Checkbox66_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox66.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox66.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox66.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox66_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox66.Value, 1, 1)
If busqueda = "A" Then
CheckBox66 = False
ElseIf busqueda = "C" Then
CheckBox66 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox68_Click()
Application.ScreenUpdating = False

124
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox68.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox68.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox68.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox68_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox68.Value, 1, 1)
If busqueda = "A" Then
CheckBox68 = False
ElseIf busqueda = "C" Then
CheckBox68 = True
'Else
Hoja6 - 36
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox70_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox70.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox70.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox70.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox70_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox70.Value, 1, 1)
If busqueda = "A" Then
CheckBox70 = False
ElseIf busqueda = "C" Then
CheckBox70 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox72_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox72.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox72.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"

125
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox72.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox72_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox72.Value, 1, 1)
If busqueda = "A" Then
CheckBox72 = False
Hoja6 - 37
ElseIf busqueda = "C" Then
CheckBox72 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox74_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox74.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox74.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox74.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox74_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox74.Value, 1, 1)
If busqueda = "A" Then
CheckBox74 = False
ElseIf busqueda = "C" Then
CheckBox74 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox76_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox76.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox76.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox76.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox76_Change()

126
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
Hoja6 - 38
busqueda = Mid(FASE2.ComboBox76.Value, 1, 1)
If busqueda = "A" Then
CheckBox76 = False
ElseIf busqueda = "C" Then
CheckBox76 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox78_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox78.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox78.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox78.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox78_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox78.Value, 1, 1)
If busqueda = "A" Then
CheckBox78 = False
ElseIf busqueda = "C" Then
CheckBox78 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox80_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox80.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox80.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox80.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox80_Change()
Hoja6 - 39
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox80.Value, 1, 1)
If busqueda = "A" Then
CheckBox80 = False
ElseIf busqueda = "C" Then
CheckBox80 = True

127
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox82_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox82.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox82.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox82.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox82_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox82.Value, 1, 1)
If busqueda = "A" Then
CheckBox82 = False
ElseIf busqueda = "C" Then
CheckBox82 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox84_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox84.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox84.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox84.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja6 - 40
End Sub
Private Sub Combobox84_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox84.Value, 1, 1)
If busqueda = "A" Then
CheckBox84 = False
ElseIf busqueda = "C" Then
CheckBox84 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox86_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox86.Value, 19)

128
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox86.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox86.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox86_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox86.Value, 1, 1)
If busqueda = "A" Then
CheckBox86 = False
ElseIf busqueda = "C" Then
CheckBox86 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox88_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox88.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox88.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox88.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja6 - 41
Salir:
Exit Sub
End Sub
Private Sub Combobox88_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox88.Value, 1, 1)
If busqueda = "A" Then
CheckBox88 = False
ElseIf busqueda = "C" Then
CheckBox88 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox90_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox90.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox90.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox90.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click

129
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox90_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox90.Value, 1, 1)
If busqueda = "A" Then
CheckBox90 = False
ElseIf busqueda = "C" Then
CheckBox90 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox65_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox65.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox65.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox65.Value = False Then
Hoja6 - 42
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox65_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox65.Value, 1, 1)
If busqueda = "A" Then
CheckBox65 = False
ElseIf busqueda = "C" Then
CheckBox65 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox67_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox67.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox67.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox67.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox67_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox67.Value, 1, 1)

130
If busqueda = "A" Then
CheckBox67 = False
ElseIf busqueda = "C" Then
CheckBox67 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox69_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox69.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox69.Value = True Then
Hoja6 - 43
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox69.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox69_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox69.Value, 1, 1)
If busqueda = "A" Then
CheckBox69 = False
ElseIf busqueda = "C" Then
CheckBox69 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox71_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox71.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox71.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox71.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox71_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox71.Value, 1, 1)
If busqueda = "A" Then
CheckBox71 = False
ElseIf busqueda = "C" Then
CheckBox71 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox73_Click()

131
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox73.Value, 19)
Hoja6 - 44
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox73.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox73.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox73_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox73.Value, 1, 1)
If busqueda = "A" Then
CheckBox73 = False
ElseIf busqueda = "C" Then
CheckBox73 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox75_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox75.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox75.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox75.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox75_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox75.Value, 1, 1)
If busqueda = "A" Then
CheckBox75 = False
ElseIf busqueda = "C" Then
CheckBox75 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox77_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
Hoja6 - 45
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox77.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox77.Value = True Then

132
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox77.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox77_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox77.Value, 1, 1)
If busqueda = "A" Then
CheckBox77 = False
ElseIf busqueda = "C" Then
CheckBox77 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox79_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox79.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox79.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox79.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox79_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox79.Value, 1, 1)
If busqueda = "A" Then
CheckBox79 = False
ElseIf busqueda = "C" Then
CheckBox79 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox81_Click()
Hoja6 - 46
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox81.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox81.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox81.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

133
End Sub
Private Sub Combobox81_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox81.Value, 1, 1)
If busqueda = "A" Then
CheckBox81 = False
ElseIf busqueda = "C" Then
CheckBox81 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox83_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox83.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox83.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox83.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox83_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox83.Value, 1, 1)
If busqueda = "A" Then
CheckBox83 = False
ElseIf busqueda = "C" Then
CheckBox83 = True
'Else
'CheckBox1 = False
End If
Hoja6 - 47
End Sub
Private Sub Checkbox85_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox85.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox85.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox85.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox85_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox85.Value, 1, 1)
If busqueda = "A" Then
CheckBox85 = False
ElseIf busqueda = "C" Then
CheckBox85 = True

134
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox87_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox87.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox87.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox87.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox87_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox87.Value, 1, 1)
If busqueda = "A" Then
CheckBox87 = False
ElseIf busqueda = "C" Then
CheckBox87 = True
'Else
'CheckBox1 = False
Hoja6 - 48
End If
End Sub
Private Sub Checkbox89_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
On Error GoTo Salir
busqueda = Right(FASE2.ComboBox89.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox89.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox89.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox89_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = Worksheets("TAKT 2")
busqueda = Mid(FASE2.ComboBox89.Value, 1, 1)
If busqueda = "A" Then
CheckBox89 = False
ElseIf busqueda = "C" Then
CheckBox89 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CommandButton6_Click()
mover_rejilla
For Each rango In Range("Estandar")
If Not IsEmpty(rango) Then
rango.Select

135
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
Hoja6 - 49
.TintAndShade = 0
.Weight = xlThin
End With
End If
Next
End Sub
Function IsFileOpen(filename As String)
Dim filenum As Integer, errnum As Integer
On Error Resume Next ' Turn error checking off.
filenum = FreeFile() ' Get a free file number.
' Attempt to open the file and lock it.
Open filename For Input Lock Read As #filenum
Close filenum ' Close the file.
errnum = Err ' Save the error number that occurred.
On Error GoTo 0 ' Turn error checking back on.
' Check to see which error occurred.
Select Case errnum
' No error occurred.
' File is NOT already open by another user.
Case 0
IsFileOpen = False
' Error number for "Permission Denied."
' File is already opened by another user.
Case 70
IsFileOpen = True
' Another error occurred.
Case Else
Error errnum
End Select
End Function
Private Sub DTPicker21_Change()
fecha = DTPicker21.Value
If ActiveCell.Offset(1, 0) = "Turno" Then
ActiveCell = fecha
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set FASE2 = Worksheets("TAKT 2")
Application.ScreenUpdating = False
col_avance25 = Application.WorksheetFunction.Match(25, FASE2.Range("A7:IV7"),
0)
Set KeyCells = FASE2.Range("avance")
On Error GoTo Salir
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
On Error GoTo Salir
If Target.Value2 = "X" Then
If Target.Offset(0, -1) = "" And Target.Column <> col_avance25 Then
Target.Offset(0, -1).Activate
ActiveCell.Value = "X"
'Offset(-1, 0).Value2 = "X"
End If
ElseIf Target.Value2 = "PB" Or Target.Value2 = "U" Then
FASE2.Range("M3") = Target.row

136
Load formincidencias
formincidencias.Show
End If
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja6 - 50
Private Sub CommandButton1_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Verde
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE2")
End If
End Sub
Private Sub CommandButton2_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Rojo
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE2")
End If
End Sub
Private Sub CommandButton3_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Gris
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE2")
End If
End Sub
Private Sub CommandButton4_Click()
Range("M3") = ClearContents
Load formincidencias
formincidencias.Show
End Sub
Private Sub CommandButton5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE2 = ActiveWorkbook.Worksheets("TAKT 2")
incidencias.Activate
lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
''''''
FASE2.Activate
FASE2.ComboBox1.Clear
FASE2.ComboBox2.Clear
FASE2.ComboBox3.Clear
FASE2.ComboBox4.Clear
FASE2.ComboBox5.Clear
FASE2.ComboBox6.Clear
FASE2.ComboBox7.Clear
FASE2.ComboBox8.Clear
FASE2.ComboBox9.Clear
FASE2.ComboBox10.Clear
FASE2.ComboBox11.Clear
FASE2.ComboBox12.Clear
FASE2.ComboBox13.Clear
FASE2.ComboBox14.Clear
FASE2.ComboBox15.Clear
FASE2.ComboBox16.Clear
FASE2.ComboBox17.Clear
FASE2.ComboBox18.Clear
FASE2.ComboBox19.Clear
FASE2.ComboBox20.Clear
FASE2.ComboBox21.Clear
Hoja6 - 51
FASE2.ComboBox22.Clear
FASE2.ComboBox23.Clear
FASE2.ComboBox24.Clear
FASE2.ComboBox25.Clear
FASE2.ComboBox26.Clear

137
FASE2.ComboBox27.Clear
FASE2.ComboBox28.Clear
FASE2.ComboBox29.Clear
FASE2.ComboBox30.Clear
FASE2.ComboBox31.Clear
FASE2.ComboBox32.Clear
FASE2.ComboBox33.Clear
FASE2.ComboBox34.Clear
FASE2.ComboBox35.Clear
FASE2.ComboBox36.Clear
FASE2.ComboBox37.Clear
FASE2.ComboBox38.Clear
FASE2.ComboBox39.Clear
FASE2.ComboBox40.Clear
FASE2.ComboBox41.Clear
FASE2.ComboBox42.Clear
FASE2.ComboBox43.Clear
FASE2.ComboBox44.Clear
FASE2.ComboBox45.Clear
FASE2.ComboBox46.Clear
FASE2.ComboBox47.Clear
FASE2.ComboBox48.Clear
FASE2.ComboBox49.Clear
FASE2.ComboBox50.Clear
FASE2.ComboBox51.Clear
FASE2.ComboBox52.Clear
FASE2.ComboBox53.Clear
FASE2.ComboBox54.Clear
FASE2.ComboBox55.Clear
FASE2.ComboBox56.Clear
FASE2.ComboBox57.Clear
FASE2.ComboBox58.Clear
FASE2.ComboBox59.Clear
FASE2.ComboBox60.Clear
FASE2.ComboBox61.Clear
FASE2.ComboBox62.Clear
FASE2.ComboBox63.Clear
FASE2.ComboBox64.Clear
FASE2.ComboBox65.Clear
FASE2.ComboBox66.Clear
FASE2.ComboBox67.Clear
FASE2.ComboBox68.Clear
FASE2.ComboBox69.Clear
FASE2.ComboBox70.Clear
FASE2.ComboBox71.Clear
FASE2.ComboBox72.Clear
FASE2.ComboBox73.Clear
FASE2.ComboBox74.Clear
FASE2.ComboBox75.Clear
FASE2.ComboBox76.Clear
FASE2.ComboBox77.Clear
FASE2.ComboBox78.Clear
FASE2.ComboBox79.Clear
FASE2.ComboBox80.Clear
FASE2.ComboBox81.Clear
FASE2.ComboBox82.Clear
FASE2.ComboBox83.Clear
FASE2.ComboBox84.Clear
FASE2.ComboBox85.Clear
FASE2.ComboBox86.Clear
FASE2.ComboBox87.Clear
FASE2.ComboBox88.Clear
FASE2.ComboBox89.Clear
FASE2.ComboBox90.Clear
incidencias.Activate
For i = 34 To lastrow
If incidencias.Cells(i, 16) = "TAKT 2" Then
NOperacion = incidencias.Cells(i, 3)
Hoja6 - 52
If incidencias.Cells(i, 1) = "ABIERTA" Then
estado = "A"
Else
estado = "C"
End If
If NOperacion = 1 Then
FASE2.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)

138
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 2 Then
FASE2.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 3 Then
FASE2.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 4 Then
FASE2.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 5 Then
FASE2.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 6 Then
FASE2.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 7 Then
FASE2.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 8 Then
FASE2.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 9 Then
FASE2.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 10 Then
FASE2.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 11 Then
FASE2.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 12 Then
FASE2.ComboBox12.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 13 Then
FASE2.ComboBox13.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 14 Then
FASE2.ComboBox14.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 15 Then
FASE2.ComboBox15.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 16 Then
FASE2.ComboBox16.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 17 Then
FASE2.ComboBox17.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 18 Then
FASE2.ComboBox18.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 19 Then
FASE2.ComboBox19.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 20 Then
FASE2.ComboBox20.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)

139
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 21 Then
FASE2.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 22 Then
FASE2.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 23 Then
Hoja6 - 53
FASE2.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 24 Then
FASE2.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 25 Then
FASE2.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 26 Then
FASE2.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 27 Then
FASE2.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 28 Then
FASE2.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 29 Then
FASE2.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 30 Then
FASE2.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 31 Then
FASE2.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 32 Then
FASE2.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 33 Then
FASE2.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 34 Then
FASE2.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 35 Then
FASE2.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 36 Then
FASE2.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 37 Then
FASE2.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 38 Then
FASE2.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 39 Then
FASE2.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)

" & incidencias.Cells(i, 6)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &

140
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 40 Then
FASE2.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 41 Then
FASE2.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 42 Then
FASE2.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 43 Then
FASE2.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 44 Then
FASE2.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 45 Then
FASE2.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 46 Then
FASE2.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 47 Then
FASE2.ComboBox47.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 48 Then
FASE2.ComboBox48.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
Hoja6 - 54
ElseIf NOperacion = 49 Then
FASE2.ComboBox49.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 50 Then
FASE2.ComboBox50.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 51 Then
FASE2.ComboBox51.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 52 Then
FASE2.ComboBox52.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 53 Then
FASE2.ComboBox53.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 54 Then
FASE2.ComboBox54.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 55 Then
FASE2.ComboBox55.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 56 Then
FASE2.ComboBox56.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 57 Then
FASE2.ComboBox57.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 58 Then

" & incidencias.Cells(i, 6)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

141
FASE2.ComboBox58.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 59 Then
FASE2.ComboBox59.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 60 Then
FASE2.ComboBox60.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 61 Then
FASE2.ComboBox61.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 62 Then
FASE2.ComboBox62.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 63 Then
FASE2.ComboBox63.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 64 Then
FASE2.ComboBox64.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 65 Then
FASE2.ComboBox65.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 66 Then
FASE2.ComboBox66.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 67 Then
FASE2.ComboBox67.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 68 Then
FASE2.ComboBox68.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 69 Then
FASE2.ComboBox69.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 70 Then
FASE2.ComboBox70.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 71 Then
FASE2.ComboBox71.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 72 Then
FASE2.ComboBox72.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 73 Then
FASE2.ComboBox73.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 74 Then
FASE2.ComboBox74.AddItem estado & " incidencias.Cells(i, 5)
Hoja6 - 55
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 75 Then
FASE2.ComboBox75.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 76 Then
FASE2.ComboBox76.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 77 Then

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

142
FASE2.ComboBox77.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 78 Then
FASE2.ComboBox78.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 79 Then
FASE2.ComboBox79.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 80 Then
FASE2.ComboBox80.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 81 Then
FASE2.ComboBox81.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 82 Then
FASE2.ComboBox82.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 83 Then
FASE2.ComboBox83.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 84 Then
FASE2.ComboBox84.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 85 Then
FASE2.ComboBox85.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 86 Then
FASE2.ComboBox86.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 87 Then
FASE2.ComboBox87.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 88 Then
FASE2.ComboBox88.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 89 Then
FASE2.ComboBox89.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 90 Then
FASE2.ComboBox90.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
End If
End If
Next
FASE2.Activate
End Sub
Hoja7 - 1
Private Sub Worksheet_Activate()
ActiveWindow.Zoom = 86
End Sub
Private Sub ComboBox41_DropButtonClick()
ComboBox41.List = Array("PENDIENTE", "EN CURSO", "CERRADO", "BLOQUEADO")
estado = ComboBox41
Select Case estado
Case "PENDIENTE": ComboBox41.BackColor = RGB(243, 112, 41)
Case "EN CURSO": ComboBox41.BackColor = RGB(233, 230, 17)
Case "CERRADO": ComboBox41.BackColor = RGB(166, 206, 57)
Case "BLOQUEADO": ComboBox41.BackColor = RGB(227, 30, 48)
End Select
End Sub
Private Sub mover_rejilla()
Set FASE3 = ActiveWorkbook.Worksheets("TAKT 3")

&

&

&

&

&

&

&

&

&

&

&

&

&

&

143
Application.ScreenUpdating = False
FASE3.Activate
lastrow = FASE3.Range("A:A").End(xlDown).row
inicio_real = Application.WorksheetFunction.Match("DIA 1",
FASE3.Range("A5:IV5"), 0)
inicio = Range("L4")
hora_inicio = TextBox1
On Error GoTo Salir
If hora_inicio >= 15 Then
inicio2 = inicio_real + (hora_inicio - 15) * 2
FASE3.Range("AB7") = "T"
ElseIf hora_inicio < 15 And hora_inicio >= 7 Then
inicio2 = inicio_real + (hora_inicio - 7) * 2
FASE3.Range("AB7") = "M"
Else
GoTo Salir
End If
Range(Cells(8, inicio), Cells(lastrow, 1000)).Copy
Range("L4") = inicio2
Cells(8, inicio2).PasteSpecial xlPasteValues
If hora_inicio <> "7" And hora_inicio <> "15" Then
Range(Cells(8, inicio_real), Cells(lastrow, inicio2 - 1)).ClearContents
End If
Range("AJ6").Select
Exit Sub
Salir:
MsgBox ("Introduce la hora en el formato adecuado indicando nicamente las
dos cifras de la hroa de
entrada del cajn (7-15, 15-23)")
Range("AJ6").Select
Exit Sub
End Sub
Private Sub CheckBox1_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox1.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox1.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox1.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Hoja7 - 2
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox1_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox1.Value, 1, 1)
If busqueda = "A" Then
CheckBox1 = False
ElseIf busqueda = "C" Then
CheckBox1 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox2_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox2.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox2.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"

144
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox2.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox2_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox2.Value, 1, 1)
If busqueda = "A" Then
CheckBox2 = False
ElseIf busqueda = "C" Then
CheckBox2 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox3_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox3.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox3.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
Hoja7 - 3
ElseIf estado_incidencia = "CERRADA" And CheckBox3.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox3_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox3.Value, 1, 1)
If busqueda = "A" Then
CheckBox3 = False
ElseIf busqueda = "C" Then
CheckBox3 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox4_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox4.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox4.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox4.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub

145
Private Sub ComboBox4_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox4.Value, 1, 1)
If busqueda = "A" Then
CheckBox4 = False
ElseIf busqueda = "C" Then
CheckBox4 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox5.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
Hoja7 - 4
If estado_incidencia = "ABIERTA" And CheckBox5.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox5.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox5_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox5.Value, 1, 1)
If busqueda = "A" Then
CheckBox5 = False
ElseIf busqueda = "C" Then
CheckBox5 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox6_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox6.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox6.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox6.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox6_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox6.Value, 1, 1)
If busqueda = "A" Then
CheckBox6 = False
ElseIf busqueda = "C" Then
CheckBox6 = True
'Else

146
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox7_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
Hoja7 - 5
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox7.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox7.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox7.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox7_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox7.Value, 1, 1)
If busqueda = "A" Then
CheckBox7 = False
ElseIf busqueda = "C" Then
CheckBox7 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox8_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox8.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox8.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox8.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox8_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox8.Value, 1, 1)
If busqueda = "A" Then
CheckBox8 = False
ElseIf busqueda = "C" Then
CheckBox8 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox9_Click()
Hoja7 - 6
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir

147
busqueda = Right(FASE3.ComboBox9.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox9.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox9.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox9_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox9.Value, 1, 1)
If busqueda = "A" Then
CheckBox9 = False
ElseIf busqueda = "C" Then
CheckBox9 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox10_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox10.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox10.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox10.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox10_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox10.Value, 1, 1)
If busqueda = "A" Then
CheckBox10 = False
ElseIf busqueda = "C" Then
CheckBox10 = True
'Else
'CheckBox1 = False
End If
End Sub
Hoja7 - 7
Private Sub Checkbox11_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox11.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox11.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox11.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click

148
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox11_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox11.Value, 1, 1)
If busqueda = "A" Then
CheckBox11 = False
ElseIf busqueda = "C" Then
CheckBox11 = True
'Else
'Checkbox11 = False
End If
End Sub
Private Sub Checkbox12_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox12.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox12.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox12.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox12_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox12.Value, 1, 1)
If busqueda = "A" Then
CheckBox12 = False
ElseIf busqueda = "C" Then
CheckBox12 = True
'Else
'CheckBox1 = False
End If
Hoja7 - 8
End Sub
Private Sub Checkbox13_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox13.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox13.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox13.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox13_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")

149
busqueda = Mid(FASE3.ComboBox13.Value, 1, 1)
If busqueda = "A" Then
CheckBox13 = False
ElseIf busqueda = "C" Then
CheckBox13 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox14_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox14.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox14.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox14.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox14_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox14.Value, 1, 1)
If busqueda = "A" Then
CheckBox14 = False
ElseIf busqueda = "C" Then
CheckBox14 = True
'Else
Hoja7 - 9
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox15_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox15.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox15.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox15.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox15_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox15.Value, 1, 1)
If busqueda = "A" Then
CheckBox15 = False
ElseIf busqueda = "C" Then
CheckBox15 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox16_Click()

150
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox16.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox16.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox16.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox16_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox16.Value, 1, 1)
If busqueda = "A" Then
CheckBox16 = False
Hoja7 - 10
ElseIf busqueda = "C" Then
CheckBox16 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox17_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox17.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox17.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox17.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox17_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox17.Value, 1, 1)
If busqueda = "A" Then
CheckBox17 = False
ElseIf busqueda = "C" Then
CheckBox17 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox18_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox18.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox18.Value = True Then

151
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox18.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox18_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
Hoja7 - 11
busqueda = Mid(FASE3.ComboBox18.Value, 1, 1)
If busqueda = "A" Then
CheckBox18 = False
ElseIf busqueda = "C" Then
CheckBox18 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox19_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox19.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox19.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox19.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox19_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox19.Value, 1, 1)
If busqueda = "A" Then
CheckBox19 = False
ElseIf busqueda = "C" Then
CheckBox19 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox20_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox20.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox20.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox20.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub

152
Private Sub Combobox20_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja7 - 12
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox20.Value, 1, 1)
If busqueda = "A" Then
CheckBox20 = False
ElseIf busqueda = "C" Then
CheckBox20 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox21_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox21.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox21.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox21.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox21_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox21.Value, 1, 1)
If busqueda = "A" Then
CheckBox21 = False
ElseIf busqueda = "C" Then
CheckBox21 = True
'Else
'Checkbox21 = False
End If
End Sub
Private Sub Checkbox22_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox22.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox22.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox22.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja7 - 13
Private Sub Combobox22_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox22.Value, 1, 1)
If busqueda = "A" Then
CheckBox22 = False
ElseIf busqueda = "C" Then

153
CheckBox22 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox23_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox23.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox23.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox23.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox23_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox23.Value, 1, 1)
If busqueda = "A" Then
CheckBox23 = False
ElseIf busqueda = "C" Then
CheckBox23 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox24_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox24.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox24.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox24.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Hoja7 - 14
Exit Sub
End Sub
Private Sub Combobox24_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox24.Value, 1, 1)
If busqueda = "A" Then
CheckBox24 = False
ElseIf busqueda = "C" Then
CheckBox24 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox25_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir

154
busqueda = Right(FASE3.ComboBox25.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox25.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox25.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox25_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox25.Value, 1, 1)
If busqueda = "A" Then
CheckBox25 = False
ElseIf busqueda = "C" Then
CheckBox25 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox26_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox26.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox26.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox26.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Hoja7 - 15
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox26_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox26.Value, 1, 1)
If busqueda = "A" Then
CheckBox26 = False
ElseIf busqueda = "C" Then
CheckBox26 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox27_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox27.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox27.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox27.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"

155
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox27_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox27.Value, 1, 1)
If busqueda = "A" Then
CheckBox27 = False
ElseIf busqueda = "C" Then
CheckBox27 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox28_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox28.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox28.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox28.Value = False Then
Hoja7 - 16
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox28_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox28.Value, 1, 1)
If busqueda = "A" Then
CheckBox28 = False
ElseIf busqueda = "C" Then
CheckBox28 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox29_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox29.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox29.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox29.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox29_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")

156
busqueda = Mid(FASE3.ComboBox29.Value, 1, 1)
If busqueda = "A" Then
CheckBox29 = False
ElseIf busqueda = "C" Then
CheckBox29 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox30_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox30.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox30.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
Hoja7 - 17
ElseIf estado_incidencia = "CERRADA" And CheckBox30.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox30_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox30.Value, 1, 1)
If busqueda = "A" Then
CheckBox30 = False
ElseIf busqueda = "C" Then
CheckBox30 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox31_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox31.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox31.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox31.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox31_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox31.Value, 1, 1)
If busqueda = "A" Then
CheckBox31 = False
ElseIf busqueda = "C" Then
CheckBox31 = True
'Else
'Checkbox31 = False
End If
End Sub

157
Private Sub Checkbox32_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox32.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
Hoja7 - 18
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox32.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox32.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox32_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox32.Value, 1, 1)
If busqueda = "A" Then
CheckBox32 = False
ElseIf busqueda = "C" Then
CheckBox32 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox33_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox33.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox33.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox33.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox33_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox33.Value, 1, 1)
If busqueda = "A" Then
CheckBox33 = False
ElseIf busqueda = "C" Then
CheckBox33 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox34_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
Hoja7 - 19
busqueda = Right(FASE3.ComboBox34.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)

158
If estado_incidencia = "ABIERTA" And CheckBox34.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox34.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox34_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox34.Value, 1, 1)
If busqueda = "A" Then
CheckBox34 = False
ElseIf busqueda = "C" Then
CheckBox34 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox35_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox35.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox35.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox35.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox35_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox35.Value, 1, 1)
If busqueda = "A" Then
CheckBox35 = False
ElseIf busqueda = "C" Then
CheckBox35 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox36_Click()
Application.ScreenUpdating = False
Hoja7 - 20
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox36.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox36.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox36.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:

159
Exit Sub
End Sub
Private Sub Combobox36_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox36.Value, 1, 1)
If busqueda = "A" Then
CheckBox36 = False
ElseIf busqueda = "C" Then
CheckBox36 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox37_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox37.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox37.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox37.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox37_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox37.Value, 1, 1)
If busqueda = "A" Then
CheckBox37 = False
ElseIf busqueda = "C" Then
CheckBox37 = True
'Else
'CheckBox1 = False
End If
Hoja7 - 21
End Sub
Private Sub Checkbox38_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox38.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox38.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox38.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox38_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox38.Value, 1, 1)
If busqueda = "A" Then
CheckBox38 = False
ElseIf busqueda = "C" Then

160
CheckBox38 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox39_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox39.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox39.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox39.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox39_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox39.Value, 1, 1)
If busqueda = "A" Then
CheckBox39 = False
ElseIf busqueda = "C" Then
CheckBox39 = True
'Else
'CheckBox1 = False
End If
Hoja7 - 22
End Sub
Private Sub Checkbox40_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
On Error GoTo Salir
busqueda = Right(FASE3.ComboBox40.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox40.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox40.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox40_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = Worksheets("TAKT 3")
busqueda = Mid(FASE3.ComboBox40.Value, 1, 1)
If busqueda = "A" Then
CheckBox40 = False
ElseIf busqueda = "C" Then
CheckBox40 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CommandButton6_Click()
mover_rejilla
For Each rango In Range("Estandar")
If Not IsEmpty(rango) Then

161
rango.Select
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
End If
Next
End Sub
Function IsFileOpen(filename As String)
Hoja7 - 23
Dim filenum As Integer, errnum As Integer
On Error Resume Next ' Turn error checking off.
filenum = FreeFile() ' Get a free file number.
' Attempt to open the file and lock it.
Open filename For Input Lock Read As #filenum
Close filenum ' Close the file.
errnum = Err ' Save the error number that occurred.
On Error GoTo 0 ' Turn error checking back on.
' Check to see which error occurred.
Select Case errnum
' No error occurred.
' File is NOT already open by another user.
Case 0
IsFileOpen = False
' Error number for "Permission Denied."
' File is already opened by another user.
Case 70
IsFileOpen = True
' Another error occurred.
Case Else
Error errnum
End Select
End Function
Private Sub DTPicker21_Change()
fecha = DTPicker21.Value
If ActiveCell.Offset(1, 0) = "Turno" Then
ActiveCell = fecha
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set FASE3 = Worksheets("TAKT 3")
Application.ScreenUpdating = False
col_avance25 = Application.WorksheetFunction.Match(25, FASE3.Range("A7:IV7"),
0)
Set KeyCells = FASE3.Range("Avance")
On Error GoTo Salir
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
On Error GoTo Salir
If Target.Value2 = "X" Then
If Target.Offset(0, -1) = "" And Target.Column <> col_avance25 Then
Target.Offset(0, -1).Activate
ActiveCell.Value = "X"
'Offset(-1, 0).Value2 = "X"
End If
ElseIf Target.Value2 = "PB" Or Target.Value2 = "U" Then

162
FASE3.Range("M3") = Target.row
Load formincidencias
formincidencias.Show
End If
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub CommandButton1_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Verde
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE3")
Hoja7 - 24
End If
End Sub
Private Sub CommandButton2_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Rojo
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE3")
End If
End Sub
Private Sub CommandButton3_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Gris
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE3")
End If
End Sub
Private Sub CommandButton4_Click()
Range("M3") = ClearContents
Load formincidencias
formincidencias.Show
End Sub
Private Sub CommandButton5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE3 = ActiveWorkbook.Worksheets("TAKT 3")
incidencias.Activate
lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
''''''
FASE3.Activate
FASE3.ComboBox1.Clear
FASE3.ComboBox2.Clear
FASE3.ComboBox3.Clear
FASE3.ComboBox4.Clear
FASE3.ComboBox5.Clear
FASE3.ComboBox6.Clear
FASE3.ComboBox7.Clear
FASE3.ComboBox8.Clear
FASE3.ComboBox9.Clear
FASE3.ComboBox10.Clear
FASE3.ComboBox11.Clear
FASE3.ComboBox12.Clear
FASE3.ComboBox13.Clear
FASE3.ComboBox14.Clear
FASE3.ComboBox15.Clear
FASE3.ComboBox16.Clear
FASE3.ComboBox17.Clear
FASE3.ComboBox18.Clear
FASE3.ComboBox19.Clear
FASE3.ComboBox20.Clear
FASE3.ComboBox21.Clear
FASE3.ComboBox22.Clear
FASE3.ComboBox23.Clear
FASE3.ComboBox24.Clear
FASE3.ComboBox25.Clear
FASE3.ComboBox26.Clear

163
FASE3.ComboBox27.Clear
FASE3.ComboBox28.Clear
FASE3.ComboBox29.Clear
FASE3.ComboBox30.Clear
Hoja7 - 25
FASE3.ComboBox31.Clear
FASE3.ComboBox32.Clear
FASE3.ComboBox33.Clear
FASE3.ComboBox34.Clear
FASE3.ComboBox35.Clear
FASE3.ComboBox36.Clear
FASE3.ComboBox37.Clear
FASE3.ComboBox38.Clear
FASE3.ComboBox39.Clear
FASE3.ComboBox40.Clear
incidencias.Activate
For i = 34 To lastrow
NOperacion = incidencias.Cells(i, 3)
If incidencias.Cells(i, 1) = "ABIERTA" Then
estado = "A"
Else
estado = "C"
End If
If NOperacion = 1 Then
FASE3.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 2 Then
FASE3.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 3 Then
FASE3.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 4 Then
FASE3.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 5 Then
FASE3.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 6 Then
FASE3.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 7 Then
FASE3.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 8 Then
FASE3.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 9 Then
FASE3.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 10 Then
FASE3.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 11 Then
FASE3.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 12 Then
FASE3.ComboBox12.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 13 Then
FASE3.ComboBox13.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 14 Then

164
FASE3.ComboBox14.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 15 Then
FASE3.ComboBox15.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 16 Then
FASE3.ComboBox16.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 17 Then
FASE3.ComboBox17.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
Hoja7 - 26
ElseIf NOperacion = 18 Then
FASE3.ComboBox18.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 19 Then
FASE3.ComboBox19.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 20 Then
FASE3.ComboBox20.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 21 Then
FASE3.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 22 Then
FASE3.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 23 Then
FASE3.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 24 Then
FASE3.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 25 Then
FASE3.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 26 Then
FASE3.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 27 Then
FASE3.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 28 Then
FASE3.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 29 Then
FASE3.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 30 Then
FASE3.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 31 Then
FASE3.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 32 Then
FASE3.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

165
ElseIf NOperacion = 33 Then
FASE3.ComboBox33.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 34 Then
FASE3.ComboBox34.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 35 Then
FASE3.ComboBox35.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 36 Then
FASE3.ComboBox36.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 37 Then
FASE3.ComboBox37.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 38 Then
FASE3.ComboBox38.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 39 Then
FASE3.ComboBox39.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 40 Then
FASE3.ComboBox40.AddItem estado & " - " & incidencias.Cells(i, 4) & " : "
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
End If
Next
FASE3.Activate
End Sub
Hoja7 - 27
Hoja8 - 1
Private Sub Worksheet_Activate()
ActiveWindow.Zoom = 86
End Sub
Private Sub ComboBox65_DropButtonClick()
ComboBox65.List = Array("PENDIENTE", "EN CURSO", "CERRADO", "BLOQUEADO")
estado = ComboBox65
Select Case estado
Case "PENDIENTE": ComboBox65.BackColor = RGB(243, 112, 41)
Case "EN CURSO": ComboBox65.BackColor = RGB(233, 230, 17)
Case "CERRADO": ComboBox65.BackColor = RGB(166, 206, 57)
Case "BLOQUEADO": ComboBox65.BackColor = RGB(227, 30, 48)
End Select
End Sub
Private Sub mover_rejilla()
Set FASE4 = ActiveWorkbook.Worksheets("TAKT 4")
Application.ScreenUpdating = False
FASE4.Activate
lastrow = FASE4.Range("A:A").End(xlDown).row
inicio_real = Application.WorksheetFunction.Match("DIA 1",
FASE4.Range("A5:IV5"), 0)
inicio = Range("L4")
hora_inicio = TextBox1
On Error GoTo Salir
If hora_inicio >= 15 Then
inicio2 = inicio_real + (hora_inicio - 15) * 2
FASE4.Range("AB7") = "T"
ElseIf hora_inicio < 15 And hora_inicio >= 7 Then
inicio2 = inicio_real + (hora_inicio - 7) * 2
FASE4.Range("AB7") = "M"
Else
GoTo Salir
End If
Range(Cells(8, inicio), Cells(lastrow, 1000)).Copy
Range("L4") = inicio2
Cells(8, inicio2).PasteSpecial xlPasteValues
If hora_inicio <> "7" And hora_inicio <> "15" Then
Range(Cells(8, inicio_real), Cells(lastrow, inicio2 - 1)).ClearContents
End If
Range("AJ6").Select

&

&

&

&

&

&

&

&

166
Exit Sub
Salir:
MsgBox ("Introduce la hora en el formato adecuado indicando nicamente las
dos cifras de la hroa de
entrada del cajn (7-15, 15-23)")
Range("AJ6").Select
Exit Sub
End Sub
Private Sub CheckBox1_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox1.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox1.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox1.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Hoja8 - 2
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox1_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox1.Value, 1, 1)
If busqueda = "A" Then
CheckBox1 = False
ElseIf busqueda = "C" Then
CheckBox1 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox2_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox2.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox2.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox2.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox2_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox2.Value, 1, 1)
If busqueda = "A" Then
CheckBox2 = False
ElseIf busqueda = "C" Then
CheckBox2 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox3_Click()

167
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox3.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
Hoja8 - 3
If estado_incidencia = "ABIERTA" And CheckBox3.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox3.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox3_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox3.Value, 1, 1)
If busqueda = "A" Then
CheckBox3 = False
ElseIf busqueda = "C" Then
CheckBox3 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox4_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox4.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox4.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox4.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox4_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox4.Value, 1, 1)
If busqueda = "A" Then
CheckBox4 = False
ElseIf busqueda = "C" Then
CheckBox4 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
Hoja8 - 4
busqueda = Right(FASE4.ComboBox5.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox5.Value = True Then

168
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox5.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox5_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox5.Value, 1, 1)
If busqueda = "A" Then
CheckBox5 = False
ElseIf busqueda = "C" Then
CheckBox5 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox6_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox6.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox6.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox6.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox6_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox6.Value, 1, 1)
If busqueda = "A" Then
CheckBox6 = False
ElseIf busqueda = "C" Then
CheckBox6 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox7_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja8 - 5
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox7.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox7.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox7.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

169
End Sub
Private Sub ComboBox7_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox7.Value, 1, 1)
If busqueda = "A" Then
CheckBox7 = False
ElseIf busqueda = "C" Then
CheckBox7 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox8_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox8.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox8.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox8.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox70_Change()
End Sub
Private Sub ComboBox8_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox8.Value, 1, 1)
If busqueda = "A" Then
CheckBox8 = False
ElseIf busqueda = "C" Then
CheckBox8 = True
Hoja8 - 6
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox9_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox9.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox9.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox9.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox9_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox9.Value, 1, 1)
If busqueda = "A" Then
CheckBox9 = False

170
ElseIf busqueda = "C" Then
CheckBox9 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CheckBox10_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox10.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox10.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox10.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox10_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox10.Value, 1, 1)
If busqueda = "A" Then
CheckBox10 = False
ElseIf busqueda = "C" Then
Hoja8 - 7
CheckBox10 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox11_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox11.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox11.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox11.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox11_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox11.Value, 1, 1)
If busqueda = "A" Then
CheckBox11 = False
ElseIf busqueda = "C" Then
CheckBox11 = True
'Else
'Checkbox11 = False
End If
End Sub
Private Sub Checkbox12_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

171
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox12.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox12.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox12.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox12_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
Hoja8 - 8
busqueda = Mid(FASE4.ComboBox12.Value, 1, 1)
If busqueda = "A" Then
CheckBox12 = False
ElseIf busqueda = "C" Then
CheckBox12 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox13_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox13.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox13.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox13.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox13_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox13.Value, 1, 1)
If busqueda = "A" Then
CheckBox13 = False
ElseIf busqueda = "C" Then
CheckBox13 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox14_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox14.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox14.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox14.Value = False Then

172
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox14_Change()
Hoja8 - 9
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox14.Value, 1, 1)
If busqueda = "A" Then
CheckBox14 = False
ElseIf busqueda = "C" Then
CheckBox14 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox15_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox15.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox15.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox15.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox15_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox15.Value, 1, 1)
If busqueda = "A" Then
CheckBox15 = False
ElseIf busqueda = "C" Then
CheckBox15 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox16_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox16.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox16.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox16.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja8 - 10
End Sub
Private Sub Combobox16_Change()

173
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox16.Value, 1, 1)
If busqueda = "A" Then
CheckBox16 = False
ElseIf busqueda = "C" Then
CheckBox16 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox17_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox17.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox17.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox17.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox17_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox17.Value, 1, 1)
If busqueda = "A" Then
CheckBox17 = False
ElseIf busqueda = "C" Then
CheckBox17 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox18_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox18.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox18.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox18.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja8 - 11
Salir:
Exit Sub
End Sub
Private Sub Combobox18_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox18.Value, 1, 1)
If busqueda = "A" Then
CheckBox18 = False
ElseIf busqueda = "C" Then
CheckBox18 = True
'Else
'CheckBox1 = False

174
End If
End Sub
Private Sub Checkbox19_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox19.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox19.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox19.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox19_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox19.Value, 1, 1)
If busqueda = "A" Then
CheckBox19 = False
ElseIf busqueda = "C" Then
CheckBox19 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox20_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox20.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox20.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox20.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja8 - 12
Salir:
Exit Sub
End Sub
Private Sub Combobox20_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox20.Value, 1, 1)
If busqueda = "A" Then
CheckBox20 = False
ElseIf busqueda = "C" Then
CheckBox20 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox21_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox21.Value, 19)

175
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox21.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox21.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox21_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox21.Value, 1, 1)
If busqueda = "A" Then
CheckBox21 = False
ElseIf busqueda = "C" Then
CheckBox21 = True
'Else
'Checkbox21 = False
End If
End Sub
Private Sub Checkbox22_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox22.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox22.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox22.Value = False Then
Hoja8 - 13
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox22_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox22.Value, 1, 1)
If busqueda = "A" Then
CheckBox22 = False
ElseIf busqueda = "C" Then
CheckBox22 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox23_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox23.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox23.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox23.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If

176
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox23_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox23.Value, 1, 1)
If busqueda = "A" Then
CheckBox23 = False
ElseIf busqueda = "C" Then
CheckBox23 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox24_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox24.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox24.Value = True Then
Hoja8 - 14
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox24.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox24_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox24.Value, 1, 1)
If busqueda = "A" Then
CheckBox24 = False
ElseIf busqueda = "C" Then
CheckBox24 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox25_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox25.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox25.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox25.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox25_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox25.Value, 1, 1)

177
If busqueda = "A" Then
CheckBox25 = False
ElseIf busqueda = "C" Then
CheckBox25 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox26_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox26.Value, 19)
Hoja8 - 15
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox26.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox26.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox26_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox26.Value, 1, 1)
If busqueda = "A" Then
CheckBox26 = False
ElseIf busqueda = "C" Then
CheckBox26 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox27_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox27.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox27.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox27.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox27_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox27.Value, 1, 1)
If busqueda = "A" Then
CheckBox27 = False
ElseIf busqueda = "C" Then
CheckBox27 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox28_Click()
Application.ScreenUpdating = False

178
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
Hoja8 - 16
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox28.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox28.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox28.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox28_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox28.Value, 1, 1)
If busqueda = "A" Then
CheckBox28 = False
ElseIf busqueda = "C" Then
CheckBox28 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox29_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox29.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox29.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox29.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox29_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox29.Value, 1, 1)
If busqueda = "A" Then
CheckBox29 = False
ElseIf busqueda = "C" Then
CheckBox29 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox30_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja8 - 17
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox30.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox30.Value = True Then

179
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox30.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox30_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox30.Value, 1, 1)
If busqueda = "A" Then
CheckBox30 = False
ElseIf busqueda = "C" Then
CheckBox30 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox31_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox31.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox31.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox31.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox31_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox31.Value, 1, 1)
If busqueda = "A" Then
CheckBox31 = False
ElseIf busqueda = "C" Then
CheckBox31 = True
'Else
'Checkbox31 = False
End If
End Sub
Hoja8 - 18
Private Sub Checkbox32_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox32.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox32.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox32.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub

180
Private Sub Combobox32_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox32.Value, 1, 1)
If busqueda = "A" Then
CheckBox32 = False
ElseIf busqueda = "C" Then
CheckBox32 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox33_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox33.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox33.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox33.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox33_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox33.Value, 1, 1)
If busqueda = "A" Then
CheckBox33 = False
ElseIf busqueda = "C" Then
CheckBox33 = True
'Else
'CheckBox1 = False
End If
Hoja8 - 19
End Sub
Private Sub Checkbox34_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox34.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox34.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox34.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox34_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox34.Value, 1, 1)
If busqueda = "A" Then
CheckBox34 = False
ElseIf busqueda = "C" Then
CheckBox34 = True

181
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox35_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox35.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox35.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox35.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox35_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox35.Value, 1, 1)
If busqueda = "A" Then
CheckBox35 = False
ElseIf busqueda = "C" Then
CheckBox35 = True
'Else
Hoja8 - 20
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox36_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox36.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox36.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox36.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox36_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox36.Value, 1, 1)
If busqueda = "A" Then
CheckBox36 = False
ElseIf busqueda = "C" Then
CheckBox36 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox37_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox37.Value, 19)

182
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox37.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox37.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox37_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox37.Value, 1, 1)
If busqueda = "A" Then
CheckBox37 = False
Hoja8 - 21
ElseIf busqueda = "C" Then
CheckBox37 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox38_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox38.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox38.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox38.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox38_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox38.Value, 1, 1)
If busqueda = "A" Then
CheckBox38 = False
ElseIf busqueda = "C" Then
CheckBox38 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox39_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox39.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox39.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox39.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click

183
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox39_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
Hoja8 - 22
busqueda = Mid(FASE4.ComboBox39.Value, 1, 1)
If busqueda = "A" Then
CheckBox39 = False
ElseIf busqueda = "C" Then
CheckBox39 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox40_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox40.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox40.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox40.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox40_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox40.Value, 1, 1)
If busqueda = "A" Then
CheckBox40 = False
ElseIf busqueda = "C" Then
CheckBox40 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox41_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox41.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox41.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox41.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub ComboBox41_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Hoja8 - 23
Set FASE4 = Worksheets("TAKT 4")

184
busqueda = Mid(FASE4.ComboBox41.Value, 1, 1)
If busqueda = "A" Then
CheckBox41 = False
ElseIf busqueda = "C" Then
CheckBox41 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox42_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox42.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox42.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox42.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox42_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox42.Value, 1, 1)
If busqueda = "A" Then
CheckBox42 = False
ElseIf busqueda = "C" Then
CheckBox42 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox43_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox43.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox43.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox43.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Hoja8 - 24
Private Sub Combobox43_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox43.Value, 1, 1)
If busqueda = "A" Then
CheckBox43 = False
ElseIf busqueda = "C" Then
CheckBox43 = True
'Else
'CheckBox1 = False
End If
End Sub

185
Private Sub Checkbox44_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox44.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox44.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox44.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox44_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox44.Value, 1, 1)
If busqueda = "A" Then
CheckBox44 = False
ElseIf busqueda = "C" Then
CheckBox44 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox45_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox45.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox45.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox45.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
Hoja8 - 25
End Sub
Private Sub Combobox45_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox45.Value, 1, 1)
If busqueda = "A" Then
CheckBox45 = False
ElseIf busqueda = "C" Then
CheckBox45 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox46_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox46.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox46.Value = True Then

186
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox46.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox46_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox46.Value, 1, 1)
If busqueda = "A" Then
CheckBox46 = False
ElseIf busqueda = "C" Then
CheckBox46 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox47_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox47.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox47.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox47.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Hoja8 - 26
Salir:
Exit Sub
End Sub
Private Sub Combobox47_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox47.Value, 1, 1)
If busqueda = "A" Then
CheckBox47 = False
ElseIf busqueda = "C" Then
CheckBox47 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox48_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox48.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox48.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox48.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub

187
End Sub
Private Sub Combobox48_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox48.Value, 1, 1)
If busqueda = "A" Then
CheckBox48 = False
ElseIf busqueda = "C" Then
CheckBox48 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox49_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox49.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox49.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox49.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Hoja8 - 27
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox49_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox49.Value, 1, 1)
If busqueda = "A" Then
CheckBox49 = False
ElseIf busqueda = "C" Then
CheckBox49 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox50_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox50.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox50.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox50.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox50_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox50.Value, 1, 1)
If busqueda = "A" Then
CheckBox50 = False
ElseIf busqueda = "C" Then
CheckBox50 = True

188
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox51_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox51.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox51.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Hoja8 - 28
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox51.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:33
Exit Sub
End Sub
Private Sub Combobox51_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox51.Value, 1, 1)
If busqueda = "A" Then
CheckBox51 = False
ElseIf busqueda = "C" Then
CheckBox51 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox52_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox52.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox52.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox52.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox52_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox52.Value, 1, 1)
If busqueda = "A" Then
CheckBox52 = False
ElseIf busqueda = "C" Then
CheckBox52 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox53_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir

189
busqueda = Right(FASE4.ComboBox53.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
Hoja8 - 29
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox53.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox53.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox53_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox53.Value, 1, 1)
If busqueda = "A" Then
CheckBox53 = False
ElseIf busqueda = "C" Then
CheckBox53 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox54_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox54.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox54.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox54.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox54_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox54.Value, 1, 1)
If busqueda = "A" Then
CheckBox54 = False
ElseIf busqueda = "C" Then
CheckBox54 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox55_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
Hoja8 - 30
busqueda = Right(FASE4.ComboBox55.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox55.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox55.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"

190
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox55_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox55.Value, 1, 1)
If busqueda = "A" Then
CheckBox55 = False
ElseIf busqueda = "C" Then
CheckBox55 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox56_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox56.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox56.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox56.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox56_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox56.Value, 1, 1)
If busqueda = "A" Then
CheckBox56 = False
ElseIf busqueda = "C" Then
CheckBox56 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox57_Click()
Application.ScreenUpdating = False
Hoja8 - 31
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox57.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox57.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox57.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox57_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")

191
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox57.Value, 1, 1)
If busqueda = "A" Then
CheckBox57 = False
ElseIf busqueda = "C" Then
CheckBox57 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub Checkbox58_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox58.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox58.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox58.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox58_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox58.Value, 1, 1)
If busqueda = "A" Then
CheckBox58 = False
ElseIf busqueda = "C" Then
CheckBox58 = True
'Else
'CheckBox1 = False
End If
Hoja8 - 32
End Sub
Private Sub Checkbox59_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox59.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox59.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox59.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox59_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox59.Value, 1, 1)
If busqueda = "A" Then
CheckBox59 = False
ElseIf busqueda = "C" Then
CheckBox59 = True
'Else
'CheckBox1 = False
End If
End Sub

192
Private Sub Checkbox60_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox60.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox60.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox60.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox60_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox60.Value, 1, 1)
If busqueda = "A" Then
CheckBox60 = False
ElseIf busqueda = "C" Then
CheckBox60 = True
'Else
'CheckBox1 = False
End If
Hoja8 - 33
End Sub
Private Sub Checkbox61_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
On Error GoTo Salir
busqueda = Right(FASE4.ComboBox61.Value, 19)
fila_incidencia = Application.WorksheetFunction.Match(busqueda,
incidencias.Range("B:B"), 0)
estado_incidencia = incidencias.Cells(fila_incidencia, 1)
If estado_incidencia = "ABIERTA" And CheckBox61.Value = True Then
incidencias.Cells(fila_incidencia, 1) = "CERRADA"
Call CommandButton5_Click
ElseIf estado_incidencia = "CERRADA" And CheckBox61.Value = False Then
incidencias.Cells(fila_incidencia, 1) = "ABIERTA"
Call CommandButton5_Click
End If
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub Combobox61_Change()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = Worksheets("TAKT 4")
busqueda = Mid(FASE4.ComboBox61.Value, 1, 1)
If busqueda = "A" Then
CheckBox61 = False
ElseIf busqueda = "C" Then
CheckBox61 = True
'Else
'CheckBox1 = False
End If
End Sub
Private Sub CommandButton6_Click()
mover_rejilla
For Each rango In Range("Estandar")
If Not IsEmpty(rango) Then
rango.Select
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0

193
.Weight = xlThin
End With
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
End If
Next
Hoja8 - 34
End Sub
Function IsFileOpen(filename As String)
Dim filenum As Integer, errnum As Integer
On Error Resume Next ' Turn error checking off.
filenum = FreeFile() ' Get a free file number.
' Attempt to open the file and lock it.
Open filename For Input Lock Read As #filenum
Close filenum ' Close the file.
errnum = Err ' Save the error number that occurred.
On Error GoTo 0 ' Turn error checking back on.
' Check to see which error occurred.
Select Case errnum
' No error occurred.
' File is NOT already open by another user.
Case 0
IsFileOpen = False
' Error number for "Permission Denied."
' File is already opened by another user.
Case 70
IsFileOpen = True
' Another error occurred.
Case Else
Error errnum
End Select
End Function
Private Sub DTPicker21_Change()
fecha = DTPicker21.Value
If ActiveCell.Offset(1, 0) = "Turno" Then
ActiveCell = fecha
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set FASE4 = Worksheets("TAKT 4")
Application.ScreenUpdating = False
col_avance25 = Application.WorksheetFunction.Match(25, FASE4.Range("A7:IV7"),
0)
Set KeyCells = FASE4.Range("Avance")
On Error GoTo Salir
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
On Error GoTo Salir
If Target.Value2 = "X" Then
If Target.Offset(0, -1) = "" And Target.Column <> col_avance25 Then
Target.Offset(0, -1).Activate
ActiveCell.Value = "X"
'Offset(-1, 0).Value2 = "X"
End If
ElseIf Target.Value2 = "PB" Or Target.Value2 = "U" Then
FASE4.Range("M3") = Target.row
Load formincidencias
formincidencias.Show
End If
End If

194
Exit Sub
Salir:
Exit Sub
End Sub
Private Sub CommandButton1_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
Hoja8 - 35
isect.Select
Call Verde
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE4")
End If
End Sub
Private Sub CommandButton2_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Rojo
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE4")
End If
End Sub
Private Sub CommandButton3_Click()
If Not Intersect(Selection, Range("Real")) Is Nothing Then
Set isect = Application.Intersect(Selection, Range("Real"))
isect.Select
Call Gris
Else
MsgBox ("Selecciona un conjunto de celdas de la cuadricula FASE4")
End If
End Sub
Private Sub CommandButton4_Click()
Range("M3") = ClearContents
Load formincidencias
formincidencias.Show
End Sub
Private Sub CommandButton5_Click()
Application.ScreenUpdating = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE4 = ActiveWorkbook.Worksheets("TAKT 4")
incidencias.Activate
lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
''''''
FASE4.Activate
FASE4.ComboBox1.Clear
FASE4.ComboBox2.Clear
FASE4.ComboBox3.Clear
FASE4.ComboBox4.Clear
FASE4.ComboBox5.Clear
FASE4.ComboBox6.Clear
FASE4.ComboBox7.Clear
FASE4.ComboBox8.Clear
FASE4.ComboBox9.Clear
FASE4.ComboBox10.Clear
FASE4.ComboBox11.Clear
FASE4.ComboBox12.Clear
FASE4.ComboBox13.Clear
FASE4.ComboBox14.Clear
FASE4.ComboBox15.Clear
FASE4.ComboBox16.Clear
FASE4.ComboBox17.Clear
FASE4.ComboBox18.Clear
FASE4.ComboBox19.Clear
FASE4.ComboBox20.Clear
FASE4.ComboBox21.Clear
FASE4.ComboBox22.Clear
FASE4.ComboBox23.Clear
FASE4.ComboBox24.Clear
FASE4.ComboBox25.Clear
FASE4.ComboBox26.Clear
Hoja8 - 36
FASE4.ComboBox27.Clear
FASE4.ComboBox28.Clear
FASE4.ComboBox29.Clear
FASE4.ComboBox30.Clear

195
FASE4.ComboBox31.Clear
FASE4.ComboBox32.Clear
FASE4.ComboBox33.Clear
FASE4.ComboBox34.Clear
FASE4.ComboBox35.Clear
FASE4.ComboBox36.Clear
FASE4.ComboBox37.Clear
FASE4.ComboBox38.Clear
FASE4.ComboBox39.Clear
FASE4.ComboBox40.Clear
FASE4.ComboBox41.Clear
FASE4.ComboBox42.Clear
FASE4.ComboBox43.Clear
FASE4.ComboBox44.Clear
FASE4.ComboBox45.Clear
FASE4.ComboBox46.Clear
FASE4.ComboBox47.Clear
FASE4.ComboBox48.Clear
FASE4.ComboBox49.Clear
FASE4.ComboBox50.Clear
FASE4.ComboBox51.Clear
FASE4.ComboBox52.Clear
FASE4.ComboBox53.Clear
FASE4.ComboBox54.Clear
FASE4.ComboBox55.Clear
FASE4.ComboBox56.Clear
FASE4.ComboBox57.Clear
FASE4.ComboBox58.Clear
FASE4.ComboBox59.Clear
FASE4.ComboBox60.Clear
FASE4.ComboBox61.Clear
incidencias.Activate
For i = 34 To lastrow
NOperacion = incidencias.Cells(i, 3)
If incidencias.Cells(i, 1) = "ABIERTA" Then
estado = "A"
Else
estado = "C"
End If
If NOperacion = 1 Then
FASE4.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 2 Then
FASE4.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 3 Then
FASE4.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 4 Then
FASE4.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 5 Then
FASE4.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 6 Then
FASE4.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 7 Then
FASE4.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 8 Then
FASE4.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 9 Then
FASE4.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
Hoja8 - 37
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i, 6)
ElseIf NOperacion = 10 Then

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

196
FASE4.ComboBox10.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 11 Then
FASE4.ComboBox11.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 12 Then
FASE4.ComboBox12.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 13 Then
FASE4.ComboBox13.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 14 Then
FASE4.ComboBox14.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 15 Then
FASE4.ComboBox15.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 16 Then
FASE4.ComboBox16.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 17 Then
FASE4.ComboBox17.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 18 Then
FASE4.ComboBox18.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 19 Then
FASE4.ComboBox19.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 20 Then
FASE4.ComboBox20.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 21 Then
FASE4.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 22 Then
FASE4.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 23 Then
FASE4.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 24 Then
FASE4.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 25 Then
FASE4.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 26 Then
FASE4.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 27 Then
FASE4.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 28 Then
FASE4.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 29 Then

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

197
FASE4.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 30 Then
FASE4.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 31 Then
FASE4.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 32 Then
FASE4.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 33 Then
FASE4.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 34 Then
FASE4.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 35 Then
Hoja8 - 38
FASE4.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 36 Then
FASE4.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 37 Then
FASE4.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 38 Then
FASE4.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 39 Then
FASE4.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 40 Then
FASE4.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 41 Then
FASE4.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 42 Then
FASE4.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 43 Then
FASE4.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 44 Then
FASE4.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 45 Then
FASE4.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 46 Then
FASE4.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 47 Then
FASE4.ComboBox47.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ")
ElseIf NOperacion = 48 Then

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 6)

198
FASE4.ComboBox48.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 49 Then
FASE4.ComboBox49.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 50 Then
FASE4.ComboBox50.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 51 Then
FASE4.ComboBox51.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 52 Then
FASE4.ComboBox52.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 53 Then
FASE4.ComboBox53.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 54 Then
FASE4.ComboBox54.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 55 Then
FASE4.ComboBox55.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 56 Then
FASE4.ComboBox56.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 57 Then
FASE4.ComboBox57.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 58 Then
FASE4.ComboBox58.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 59 Then
FASE4.ComboBox59.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
ElseIf NOperacion = 60 Then
FASE4.ComboBox60.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
Hoja8 - 39
ElseIf NOperacion = 61 Then
FASE4.ComboBox61.AddItem estado & " - " & incidencias.Cells(i,
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 2) & ") " & incidencias.Cells(i,
End If
Next
FASE4.Activate
End Sub
ThisWorkbook - 1
Private Sub Workbook_Open()
Permanecer = True: Mensaje_Inicial: ChecarActividad
Application.ScreenUpdating = False
Set wb = ThisWorkbook
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="digbar", UserInterfaceONly:=True
Next
ActiveWorkbook.Sheets("TAKT 1").Select
ActiveWindow.Zoom = 85
ActiveWindow.Zoom = 86
ActiveWindow.DisplayGridlines = False
ActiveWindow.DisplayHeadings = False
Application.DisplayFullScreen = True
Application.ScreenUpdating = True
End Sub

4) & " : " &


6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)
4) & " : " &
6)

199
'modulo5.isactive = True
'starttimer
'Private Sub workbook_sheetChange(ByVal sh As Object, ByVal target As Range)
'modulo5.isactive = True
'starttimer
'End Sub
Private Sub Workbook_SheetSelectionChange( _
ByVal Sh As Object, ByVal Target As Range)
Permanecer = True
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
''''''''''''''''''''''''copia el avion y el avance de cada fase en almacen
incidencias, luego el co
ntrol board recoger estos datos
'msn = ThisWorkbook.Sheets(1).Range("K2").Value
'avanceF1 = ThisWorkbook.Sheets(1).Range("O5").Value
'avanceF2 = ThisWorkbook.Sheets("TAKT 2").Range("O5").Value
'avanceF3 = ThisWorkbook.Sheets("TAKT 3").Range("O5").Value
'avanceF4 = ThisWorkbook.Sheets("TAKT 4").Range("O5").Value
'
'direccionarchivo = "C:\Users\usuario\Desktop\airbus\miguel gomez
segura\copia seguridad carpeta en
red 25 04 2014\Almacen Incidencias.xlsm"
'On Error Resume Next
'Workbooks(direccionarchivo).Save
'Workbooks(direccionarchivo).Close
'On Error GoTo 0
'Workbooks.Open direccionarchivo
'
'
'Workbooks("Almacen Incidencias.xlsm").Sheets(2).Activate
'
'Set rango = WorksheetFunction.Lookup(msn, Sheets(2).Rows(1))
'If Not rango.Value = msn Then
'rango.Offset(1, 0).Value = msn
'rango.Offset(1, 1).Value = avanceF1
'rango.Offset(1, 2).Value = avanceF2
'rango.Offset(1, 3).Value = avanceF3
'rango.Offset(1, 4).Value = avanceF4
'End If
'
'rango.Offset(0, 1).Value = avanceF1
'rango.Offset(0, 2).Value = avanceF2
'rango.Offset(0, 3).Value = avanceF3
'rango.Offset(0, 4).Value = avanceF4
'
ThisWorkbook - 2
Permanecer = False: Cerrando = True: ChecarActividad
End Sub
formincidencias - 1
Dim NOperacion As String
Dim FPQIM As String
Dim Descripcion As String
Dim duracion As String
Private Sub TextBox1_Change()
duracion = TextBox1
End Sub
'''' primer desplegable
Private Sub UserForm_Activate()
tipoincidencia.List = Array("Faltas", "Calidad", "Personal", "Ingeniera",
"Medios Industriales")
hora1.List = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")
hora2.List = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")
minuto1.List = Array("0", "1", "2", "3", "4", "5", "6")
minuto2.List = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")
On Error GoTo Salir
fila = Range("M3").Value
TextBoxNOperacion.Value = Cells(fila, 2)
Exit Sub
Salir:
Exit Sub
End Sub
'''' segundo desplegable
Private Sub tipoincidencia_Change()
motivoincidencia.Clear
FPQIM = tipoincidencia
Select Case FPQIM

200
Case "Faltas": motivoincidencia.List = Array("Falta de componente X",
"Informar del P/N", "Otros")
Case "Calidad": motivoincidencia.List = Array("HNC's", "ID's", "Falta
verificacin", "Correccin de
defectos", "Otros")
Case "Personal": motivoincidencia.List = Array("Asamblea", "Baja mdica",
"Falta formacin", "Reuni
n", "Otros")
Case "Ingeniera": motivoincidencia.List = Array("Incidencias en montaje",
"Incidencias en planos",
"Orden de produccin", "Otros")
Case "Medios Industriales": motivoincidencia.List = Array("Herramientas",
"Utillaje", "Instalacione
s", "Otros")
End Select
End Sub
''' texto desde teclado: n operacion y descripcion
Private Sub TextBoxNOperacion_Change()
NOperacion = TextBoxNOperacion
End Sub
Private Sub TextBoxDescripcion_Change()
Descripcion = TextBoxDescripcion
End Sub
'''' insertar datos en hoja excel
Private Sub btnguardarincidencia_Click()
''errores al rellenar formulario
Set barchart = ActiveSheet
If IsNumeric(TextBoxNOperacion) = False Or TextBoxNOperacion = Empty Then
MsgBox ("Por favor, introduzca el nmero de operacin")
Exit Sub
End If
If IsNumeric(TextBox1) = False Then
MsgBox ("Por favor, introduzca el nmero de horas de duracin de la
incidencia ")
Exit Sub
End If
If FPQIM = Empty Then
MsgBox ("Por favor, introduzca el tipo de incidencia")
Exit Sub
End If
If motivoincidencia = Empty Then
MsgBox ("Por favor, introduzca la causa de la incidencia. Si no est recogida
en el desplegable, se
leccione la opcin Otros e indique la causa en el campo Descripcin")
Exit Sub
End If
If Descripcion = Empty Then
MsgBox ("Por favor, introduzca una breve descripcin")
formincidencias - 2
Exit Sub
End If
Application.ScreenUpdating = False
'evita correr la macro para actualizar estado abierto/cerrado de las
incidencias
Application.EnableEvents = False
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
incidencias.Activate
incidencias.Cells(34, 1).Activate
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Activate
Loop
fila = ActiveCell.row
Dim fechaActual As Date
fechaActual = Now
a = Format(fechaActual, "dd/mm/yyyy hh:mm:ss")
ActiveCell.FormulaR1C1 = "ABIERTA"
'Fecha apertura
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "'" & a
'Range("C11").Select
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = NOperacion
'Range("D11").Select
ActiveCell.Offset(0, 1).Select
Select Case FPQIM
Case "Faltas": ActiveCell.FormulaR1C1 = "F"

201
Case "Calidad": ActiveCell.FormulaR1C1 = "Q"
Case "Personal": ActiveCell.FormulaR1C1 = "P"
Case "Ingeniera": ActiveCell.FormulaR1C1 = "I"
Case "Medios Industriales": ActiveCell.FormulaR1C1 = "M"
End Select
'Range("E11").Select
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = motivoincidencia
'Range("E11").Select
ActiveCell.Offset(0, 1).Select
duracion = ""
duracion = "'" & hora1 & hora2 & ":" & minuto1 & minuto2
ActiveCell.FormulaR1C1 = duracion
'Range("F11").Select
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = Descripcion
'Range("O11").Select
ActiveCell.Offset(0, 8).Select
ActiveCell.FormulaR1C1 = Sheets(1).Range("K2")
'Range("P11").Select
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = barchart.Name
''''editar formato
'Range("F11:N11").Select
'Selection.Merge ''''en los libros compartidos no se puede combinar celdas o
dividir celdas co
mbinadas!
Range(Cells(fila, 2), Cells(fila, 16)).Select
With Selection
.HorizontalAlignment = xlCenter
formincidencias - 3
.VerticalAlignment = xlCenter
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Cells(fila, 7).Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
End With
''''''''''fin bordes
Call contador_incidencias(fila)
''''''''''''''copiar en hoja incidencias del almacen incidencias
direccionarchivo = "C:\Users\usuario\Desktop\airbus\miguel gomez segura\copia
seguridad carpeta en
red 25 04 2014\Almacen Incidencias.xlsm"
On Error Resume Next
Workbooks(direccionarchivo).Save
Workbooks(direccionarchivo).Close
On Error GoTo 0
Workbooks.Open direccionarchivo
'Workbooks.Open "C:\Documents and Settings\b34411\Desktop\Control
Board\Almacen Incidencias"
Workbooks("Almacen Incidencias.xlsm").Sheets(1).Activate
ActiveSheet.Range("A1").Activate
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Activate
Loop
Set finrango = ActiveCell
contador = finrango.row
finrango.FormulaR1C1 = contador
incidencias.Activate
Range(Cells(fila, 1), Cells(fila, 7)).Select
Selection.Copy Destination:=Workbooks("Almacen
Incidencias.xlsm").Sheets(1).Cells(contador, 4)
incidencias.Activate
Cells(fila, 15).Select
Selection.Copy Destination:=Workbooks("Almacen
Incidencias.xlsm").Sheets(1).Cells(contador, 2)
incidencias.Activate
Cells(fila, 16).Select

202
Selection.Copy Destination:=Workbooks("Almacen
Incidencias.xlsm").Sheets(1).Cells(contador, 3)
Application.CutCopyMode = False
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
'''''''''''''fin copiar
TextBoxNOperacion = Empty
TextBoxDescripcion = Empty
TextBox1 = Empty
barchart.Activate
formincidencias.Hide
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
nuevobarchart - 1
Private Sub CommandButton1_Click()
ActiveSheet.Range("M1").FormulaR1C1 = "Barchart MSN" & msn
ActiveSheet.Range("K2").FormulaR1C1 = msn
ActiveSheet.Range("L2").FormulaR1C1 = hora_entrada
nuevobarchart.Hide
End Sub
Private Sub TextBox1_Change()
msn = TextBox1
End Sub
Private Sub TextBox2_Change()
hora_entrada = TextBox2
If hora_entrada < 0 And hora_entrada > 24 Then
MsgBox ("Introduce un numero entero del 07 al 22")
End If
End Sub
Mdulo1 - 1
Public Function contador_incidencias(fila)
Set incidencias = ActiveWorkbook.Worksheets("Incidencias")
Set FASE1 = ActiveWorkbook.Worksheets("TAKT 1")
Set FASE2 = ActiveWorkbook.Worksheets("TAKT 2")
Set FASE3 = ActiveWorkbook.Worksheets("TAKT 3")
Set FASE4 = ActiveWorkbook.Worksheets("TAKT 4")
incidencias.Activate
NOperacion = Cells(fila, 3)
i = fila
If incidencias.Cells(i, 1) = "ABIERTA" Then
estado = "A"
Else
estado = "C"
End If
If incidencias.Cells(i, 16) = "TAKT 1" Then
If NOperacion = 1 Then
FASE1.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 2 Then
FASE1.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 3 Then
FASE1.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 4 Then
FASE1.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 5 Then
FASE1.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 6 Then
FASE1.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 7 Then
FASE1.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 8 Then

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

" : " &

203
FASE1.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 9 Then
FASE1.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 10 Then
FASE1.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 11 Then
FASE1.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 12 Then
FASE1.ComboBox12.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 13 Then
FASE1.ComboBox13.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 14 Then
FASE1.ComboBox14.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 15 Then
FASE1.ComboBox15.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 16 Then
FASE1.ComboBox16.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 17 Then
FASE1.ComboBox17.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 18 Then
FASE1.ComboBox18.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 19 Then
FASE1.ComboBox19.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 20 Then
Mdulo1 - 2
FASE1.ComboBox20.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 21 Then
FASE1.ComboBox21.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 22 Then
FASE1.ComboBox22.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 23 Then
FASE1.ComboBox23.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 24 Then
FASE1.ComboBox24.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 25 Then
FASE1.ComboBox25.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 26 Then
FASE1.ComboBox26.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 27 Then

204
FASE1.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 28 Then
FASE1.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 29 Then
FASE1.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 30 Then
FASE1.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 31 Then
FASE1.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 32 Then
FASE1.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 33 Then
FASE1.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 34 Then
FASE1.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 35 Then
FASE1.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 36 Then
FASE1.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 37 Then
FASE1.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 38 Then
FASE1.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 39 Then
FASE1.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 40 Then
FASE1.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 41 Then
FASE1.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 42 Then
FASE1.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 43 Then
FASE1.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 44 Then
FASE1.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 45 Then
FASE1.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
Mdulo1 - 3

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)

205
ElseIf NOperacion = 46 Then
FASE1.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 47 Then
FASE1.ComboBox47.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 48 Then
FASE1.ComboBox48.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 49 Then
FASE1.ComboBox49.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 50 Then
FASE1.ComboBox50.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 51 Then
FASE1.ComboBox51.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 52 Then
FASE1.ComboBox52.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 53 Then
FASE1.ComboBox53.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 54 Then
FASE1.ComboBox54.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 55 Then
FASE1.ComboBox55.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 56 Then
FASE1.ComboBox56.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 57 Then
FASE1.ComboBox57.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 58 Then
FASE1.ComboBox58.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 59 Then
FASE1.ComboBox59.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 60 Then
FASE1.ComboBox60.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 61 Then
FASE1.ComboBox61.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 62 Then
FASE1.ComboBox62.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 63 Then
FASE1.ComboBox63.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 64 Then
FASE1.ComboBox64.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
End If

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)

206
ElseIf incidencias.Cells(i, 16) = "TAKT 2" Then
If NOperacion = 1 Then
FASE2.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 2 Then
FASE2.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 3 Then
FASE2.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 4 Then
FASE2.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 5 Then
FASE2.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 6 Then
Mdulo1 - 4
FASE2.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 7 Then
FASE2.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 8 Then
FASE2.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 9 Then
FASE2.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 10 Then
FASE2.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 11 Then
FASE2.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 12 Then
FASE2.ComboBox12.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 13 Then
FASE2.ComboBox13.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 14 Then
FASE2.ComboBox14.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 15 Then
FASE2.ComboBox15.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 16 Then
FASE2.ComboBox16.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 17 Then
FASE2.ComboBox17.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 18 Then
FASE2.ComboBox18.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 19 Then

207
FASE2.ComboBox19.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 20 Then
FASE2.ComboBox20.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 21 Then
FASE2.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 22 Then
FASE2.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 23 Then
FASE2.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 24 Then
FASE2.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 25 Then
FASE2.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 26 Then
FASE2.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 27 Then
FASE2.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 28 Then
FASE2.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 29 Then
FASE2.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 30 Then
FASE2.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 31 Then
FASE2.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
Mdulo1 - 5
ElseIf NOperacion = 32 Then
FASE2.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 33 Then
FASE2.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 34 Then
FASE2.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 35 Then
FASE2.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 36 Then
FASE2.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 37 Then
FASE2.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 38 Then

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)

208
FASE2.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 39 Then
FASE2.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 40 Then
FASE2.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 41 Then
FASE2.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 42 Then
FASE2.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 43 Then
FASE2.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 44 Then
FASE2.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 45 Then
FASE2.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 46 Then
FASE2.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 47 Then
FASE2.ComboBox47.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 48 Then
FASE2.ComboBox48.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 49 Then
FASE2.ComboBox49.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 50 Then
FASE2.ComboBox50.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 51 Then
FASE2.ComboBox51.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 52 Then
FASE2.ComboBox52.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 53 Then
FASE2.ComboBox53.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 54 Then
FASE2.ComboBox54.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 55 Then
FASE2.ComboBox55.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 56 Then
FASE2.ComboBox56.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 57 Then

" & incidencias.Cells(i, 4) & " : " &


" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)

209
FASE2.ComboBox57.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
Mdulo1 - 6
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 58 Then
FASE2.ComboBox58.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 59 Then
FASE2.ComboBox59.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 60 Then
FASE2.ComboBox60.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 61 Then
FASE2.ComboBox61.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 62 Then
FASE2.ComboBox62.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 63 Then
FASE2.ComboBox63.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 64 Then
FASE2.ComboBox64.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
End If
ElseIf incidencias.Cells(i, 16) = "TAKT 3" Then
If NOperacion = 1 Then
FASE3.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 2 Then
FASE3.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 3 Then
FASE3.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 4 Then
FASE3.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 5 Then
FASE3.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 6 Then
FASE3.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 7 Then
FASE3.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 8 Then
FASE3.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 9 Then
FASE3.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 10 Then
FASE3.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 11 Then
FASE3.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)

210
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 12 Then
FASE3.ComboBox12.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 13 Then
FASE3.ComboBox13.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 14 Then
FASE3.ComboBox14.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 15 Then
FASE3.ComboBox15.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 16 Then
FASE3.ComboBox16.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 17 Then
FASE3.ComboBox17.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
Mdulo1 - 7
ElseIf NOperacion = 18 Then
FASE3.ComboBox18.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 19 Then
FASE3.ComboBox19.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 20 Then
FASE3.ComboBox20.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 21 Then
FASE3.ComboBox21.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 22 Then
FASE3.ComboBox22.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 23 Then
FASE3.ComboBox23.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 24 Then
FASE3.ComboBox24.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 25 Then
FASE3.ComboBox25.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 26 Then
FASE3.ComboBox26.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 27 Then
FASE3.ComboBox27.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 28 Then
FASE3.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 29 Then
FASE3.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 30 Then

" & incidencias.Cells(i, 2)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)

211
FASE3.ComboBox30.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 31 Then
FASE3.ComboBox31.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 32 Then
FASE3.ComboBox32.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 33 Then
FASE3.ComboBox33.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 34 Then
FASE3.ComboBox34.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 35 Then
FASE3.ComboBox35.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 36 Then
FASE3.ComboBox36.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 37 Then
FASE3.ComboBox37.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 38 Then
FASE3.ComboBox38.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 39 Then
FASE3.ComboBox39.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 40 Then
FASE3.ComboBox40.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
End If
ElseIf incidencias.Cells(i, 16) = "TAKT 4" Then
If NOperacion = 1 Then
FASE4.ComboBox1.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 2 Then
Mdulo1 - 8
FASE4.ComboBox2.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 3 Then
FASE4.ComboBox3.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 4 Then
FASE4.ComboBox4.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 5 Then
FASE4.ComboBox5.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 6 Then
FASE4.ComboBox6.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 7 Then
FASE4.ComboBox7.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 8 Then
FASE4.ComboBox8.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)

212
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 9 Then
FASE4.ComboBox9.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 10 Then
FASE4.ComboBox10.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 11 Then
FASE4.ComboBox11.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 12 Then
FASE4.ComboBox12.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 13 Then
FASE4.ComboBox13.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 14 Then
FASE4.ComboBox14.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 15 Then
FASE4.ComboBox15.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 16 Then
FASE4.ComboBox16.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 17 Then
FASE4.ComboBox17.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 18 Then
FASE4.ComboBox18.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 19 Then
FASE4.ComboBox19.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 20 Then
FASE4.ComboBox20.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 21 Then
FASE4.ComboBox21.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 22 Then
FASE4.ComboBox22.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 23 Then
FASE4.ComboBox23.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 24 Then
FASE4.ComboBox24.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 25 Then
FASE4.ComboBox25.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 26 Then
FASE4.ComboBox26.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 27 Then
FASE4.ComboBox27.AddItem estado & " - " & incidencias.Cells(i, 4) & " : " &
incidencias.Cells(i, 5)

213
& " (" & incidencias.Cells(i, 6) & ")
Mdulo1 - 9
ElseIf NOperacion = 28 Then
FASE4.ComboBox28.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 29 Then
FASE4.ComboBox29.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 30 Then
FASE4.ComboBox30.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 31 Then
FASE4.ComboBox31.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 32 Then
FASE4.ComboBox32.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 33 Then
FASE4.ComboBox33.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 34 Then
FASE4.ComboBox34.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 35 Then
FASE4.ComboBox35.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 36 Then
FASE4.ComboBox36.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 37 Then
FASE4.ComboBox37.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 38 Then
FASE4.ComboBox38.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 39 Then
FASE4.ComboBox39.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 40 Then
FASE4.ComboBox40.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 41 Then
FASE4.ComboBox41.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 42 Then
FASE4.ComboBox42.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 43 Then
FASE4.ComboBox43.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 44 Then
FASE4.ComboBox44.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 45 Then
FASE4.ComboBox45.AddItem estado & " incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ")
ElseIf NOperacion = 46 Then
FASE4.ComboBox46.AddItem estado & " incidencias.Cells(i, 5)

" & incidencias.Cells(i, 2)


" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &
" & incidencias.Cells(i, 2)
" & incidencias.Cells(i, 4) & " : " &

214
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 47 Then
FASE4.ComboBox47.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 48 Then
FASE4.ComboBox48.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 49 Then
FASE4.ComboBox49.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 50 Then
FASE4.ComboBox50.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 51 Then
FASE4.ComboBox51.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 52 Then
FASE4.ComboBox52.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 53 Then
FASE4.ComboBox53.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
Mdulo1 - 10
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 54 Then
FASE4.ComboBox54.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 55 Then
FASE4.ComboBox55.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 56 Then
FASE4.ComboBox56.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 57 Then
FASE4.ComboBox57.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 58 Then
FASE4.ComboBox58.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 59 Then
FASE4.ComboBox59.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 60 Then
FASE4.ComboBox60.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
ElseIf NOperacion = 61 Then
FASE4.ComboBox61.AddItem estado & " - " & incidencias.Cells(i, 4)
incidencias.Cells(i, 5)
& " (" & incidencias.Cells(i, 6) & ") " & incidencias.Cells(i, 2)
End If
End If
End Function
Public Sub rel()
Call actualizar_incidencias
End Sub
Public Sub Verde()
col_operarios = Application.WorksheetFunction.Match("N OPER.",
Range("A5:IV5"), 0)
' Verde Macro
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 5287936

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

& " : " &

215
.TintAndShade = 0
.PatternTintAndShade = 0
End With
a = Selection.row
Selection.FormulaR1C1 = Cells(a - 1, col_operarios)
End Sub
Sub Gris()
'
' Gris Macro
Selection.ClearContents
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.149998474074526
.PatternTintAndShade = 0
End With
End Sub
Sub Rojo()
col_operarios = Application.WorksheetFunction.Match("N OPER.",
Range("A5:IV5"), 0)
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
Mdulo1 - 11
.PatternTintAndShade = 0
End With
a = Selection.row
Selection.FormulaR1C1 = Cells(a - 1, col_operarios)
End Sub
'Private Sub CommandButton7_Click()
'namesheet = ActiveSheet.Range("M1")
'entrada = InputBox("Ingrese contrasea para poder reinicializar el FASE1",
"PROCESO PROTEGIDO")
'If entrada = "Bartab" Then
'Set wb = ActiveWorkbook
'Path = "\\spi60001\Ingenieria\Departamentos\Aeroestructuras\Lean
Engineering\SOI\FaseIII Falcon &F
ormatos\Historico seguimiento visual F7X FIII.xlsx"
'If IsFileOpen("Historico seguimiento visual F7X FIII.xlsx") Then
' Workbooks("Historico seguimiento visual F7X FIII.xlsx").Activate
' Else
' Workbooks.Open filename:=Path
' End If
'Set ws = ActiveWorkbook
' Set FASE1 = wb.Sheets(namesheet)
' Set incidencias = wb.Sheets("Incidencias")
'wb.Sheets(namesheet).Copy after:=wb.Sheets("Incidencias")
'Set ActiveSheet = mover
'wb.mover.Move after:=ws.Sheets("Incidencias")
'ActiveSheet.Name = namesheet & "CERRADO"
'incidencias_lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
'Range(incidencias.Cells(34, 1), incidencias.Cells(incidencias_lastrow,
20)).Copy
'ws.Sheets("Incidencias").Cells(34, 1).PasteSpecial xlPasteAll
'ws.Activate
'ActiveWorkbook.Close SaveChanges:=True
'Range("Real").ClearContents
'Range("Avance").ClearContents
'Range("Fechas") = ""
'Load nuevoFASE1
'namesheet = wb.Range("M1")
'ActiveSheet.Name = namesheet
'Call Sheets("Hoja1").mover_rejilla
'Else
'MsgBox "Acceso Denegado", vbExclamation, "CLAVE INCORRECTA"
'End If
'End Sub
Function IsFileOpen(filename As String)
Dim filenum As Integer, errnum As Integer
On Error Resume Next ' Turn error checking off.
filenum = FreeFile() ' Get a free file number.
' Attempt to open the file and lock it.
Open filename For Input Lock Read As #filenum
Close filenum ' Close the file.

216
errnum = Err ' Save the error number that occurred.
On Error GoTo 0 ' Turn error checking back on.
' Check to see which error occurred.
Select Case errnum
' No error occurred.
' File is NOT already open by another user.
Case 0
IsFileOpen = False
' Error number for "Permission Denied."
' File is already opened by another user.
Case 70
IsFileOpen = True
' Another error occurred.
Case Else
Error errnum
Mdulo1 - 12
End Select
End Function
Mdulo2 - 1
Public Sub pintar()
Set gestor = ActiveWorkbook.Worksheets("Gestor de FASE1s")
nombrehoja = gestor.Cells(1, 1)
Set FASE1 = ActiveWorkbook.Worksheets("TAKT 1")
Application.ScreenUpdating = False
FASE1.Activate
msn = gestor.Cells(3, 3)
gestor.Cells(3, 1) = msn
operarios_turno = gestor.Range("C17")
hora_inicio = gestor.Range("C6")
lastrow = FASE1.Range("A:A").End(xlDown).row
inicio = Application.WorksheetFunction.Match("DIA 1", FASE1.Range("A5:IV5"),
0)
FASE1.Range("AJ6") = gestor.Range("C5")
If hora_inicio > 15 Then
inicio = inicio + (hora_inicio - 15) * 2
FASE1.Range("AB7") = "T"
ElseIf hora_inicio <= 15 Then
inicio = inicio + hora_inicio * 2
FASE1.Range("AB7") = "M"
End If
Range(Cells(8, inicio), Cells(lastrow, 1000)).Copy
Cells(8, inicio).PasteSpecial xlPasteValues
Mdulo3 - 1
'boton nuevo barchart
'Private Sub CommandButton7_Click()
'namesheet = ActiveSheet.Range("M1")
'entrada = InputBox("Ingrese contrasea para poder reinicializar el FASE1",
"PROCESO PROTEGIDO")
'If entrada = "Bartab" Then
'Set wb = ActiveWorkbook
'Path = "\\spi60001\Ingenieria\Departamentos\Aeroestructuras\Lean
Engineering\SOI\FaseIII Falcon &F
ormatos\Historico seguimiento visual F7X FIII.xlsx"
'If IsFileOpen("Historico seguimiento visual F7X FIII.xlsx") Then
' Workbooks("Historico seguimiento visual F7X FIII.xlsx").Activate
' Else
' Workbooks.Open filename:=Path
' End If
'
'
'Set ws = ActiveWorkbook
'
'
' Set FASE1 = wb.Sheets(namesheet)
' Set incidencias = wb.Sheets("Incidencias")
'wb.Sheets(namesheet).Copy after:=wb.Sheets("Incidencias")
'Set wb.ActiveSheet = mover
'wb.mover.Move after:=ws.Sheets("Incidencias")
'ActiveSheet.Name = namesheet & "CERRADO"
'incidencias_lastrow = 33 + incidencias.Range("M2") + incidencias.Range("N2")
'Range(incidencias.Cells(34, 1), incidencias.Cells(incidencias_lastrow,
20)).Copy
'ws.Sheets("Incidencias").Cells(34, 1).PasteSpecial xlPasteAll
'ws.Activate
'ActiveWorkbook.Close SaveChanges:=True
'

217
'Range("Real").ClearContents
'Range("Avance").ClearContents
'Range("Fechas") = ""
'Load nuevoFASE1
'namesheet = wb.Range("M1")
'ActiveSheet.Name = namesheet
'mover_rejilla
'Else
'MsgBox "Acceso Denegado", vbExclamation, "CLAVE INCORRECTA"
'End If
'End Sub
Mdulo4 - 1
Sub avance()
'copia el avance de las fases en el workbook almacen antes de guardar
Application.ScreenUpdating = False
msn = ThisWorkbook.Sheets("TAKT 1").Range("K2").Value
avanceF1 = ThisWorkbook.Sheets("TAKT 1").Range("O5").Value
avanceF2 = ThisWorkbook.Sheets("TAKT 2").Range("O5").Value
avanceF3 = ThisWorkbook.Sheets("TAKT 3").Range("O5").Value
avanceF4 = ThisWorkbook.Sheets("TAKT 4").Range("O5").Value
direccionarchivo = "C:\Users\usuario\Desktop\airbus\miguel gomez segura\copia
seguridad carpeta en
red 25 04 2014\Almacen Incidencias.xlsm"
On Error Resume Next
Workbooks(direccionarchivo).Save
Workbooks(direccionarchivo).Close
On Error GoTo 0
Workbooks.Open direccionarchivo
'Workbooks.Open "C:\Documents and Settings\b34411\Desktop\Control
Board\Almacen Incidencias"
Workbooks("Almacen Incidencias.xlsm").Sheets(3).Activate
ActiveSheet.Range("B1").Activate
Do While Not IsEmpty(ActiveCell)
If ActiveCell.FormulaR1C1 = msn Then
Exit Do
End If
ActiveCell.Offset(0, 1).Activate
Loop
If IsEmpty(ActiveCell) Then
ActiveCell.Value = msn
End If
ActiveCell.Offset(1, 0).Value = avanceF1
ActiveCell.Offset(2, 0).Value = avanceF2
ActiveCell.Offset(3, 0).Value = avanceF3
ActiveCell.Offset(4, 0).Value = avanceF4
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
Application.ScreenUpdating = True
End Sub
Mdulo5 - 1
Const idletime = 30 'seconds
Public isactive As Boolean
Dim start
Sub starttimer()
start = Timer
Do While Timer < start + idletime
DoEvents
Loop
If Not isactive Then
ActiveWorkbook.Save
ActiveWorkbook.Close savechanges:=False
Else
isactive = False
starttimer
End If
End Sub
Mdulo6 - 1
Option Explicit
Option Private Module
Public Permanecer As Boolean, Cerrando As Boolean, Tiempo As Double
Public Const EstaMacro As String = "ChecarActividad"
Public Const Lapso As String = "0:05:00"
Public Const Espera As Long = 5
Public horaProhibida As Boolean
Dim OBJETORED As Object
Dim Nombre_Del_Usuario, Nombre_de_la_maquina As String
Sub Mensaje_Inicial()

218
Set OBJETORED = CreateObject("WScript.Network")
horaProhibida = False
Nombre_Del_Usuario = OBJETORED.UserName
'Nombre_Del_Usuario = "aaa"
If Nombre_Del_Usuario <> "b34411" And Nombre_Del_Usuario <> "B34411" Then
'If Not ThisWorkbook.ReadOnly Then
'If Hour(Now) = 8 Then
' CreateObject("WScript.Shell").Popup _
' "ABIERTO EN MODO LECTURA. Desde las 8:00 hasta las 9:00 no podr realizar
modificacion
es en el barchart", 5, "ATENCION"
' horaProhibida = True
' ActiveWorkbook.ChangeFileAccess xlReadOnly
'Else
' CreateObject("WScript.Shell").Popup _
' "El Barchart se cerrar automticamente a los 5 minutos de inactividad" &
vbCr & _
'"Este aviso desaparecer en 5 segundos...", 5, "AVISO"
'End If
'End If
'Else
Permanecer = True
End If
'Nombre_Del_Usuario = OBJETORED.UserName
'Nombre_de_la_maquina = OBJETORED.ComputerName
End Sub
Sub ChecarActividad()
Set OBJETORED = CreateObject("WScript.Network")
Nombre_Del_Usuario = OBJETORED.UserName
'Nombre_Del_Usuario = "aaa"
If Nombre_Del_Usuario <> "u38412" Then
If Not ThisWorkbook.ReadOnly Then
'If Hour(Now) = 8 Then
' horaProhibida = True
'Permanecer = False
'If Not ThisWorkbook.ReadOnly Then
' ThisWorkbook.Save
' End If
' MsgBox ("ha entrado")
'End If
If Cerrando Then GoTo Salir
If Not Permanecer And Not horaProhibida Then Cerrar_O_No
Tiempo = Now + TimeValue(Lapso)
Salir:
On Error Resume Next
Application.OnTime EarliestTime:=Tiempo, Procedure:=EstaMacro,
Schedule:=Permanecer
If Cerrando Then Exit Sub
If Not Permanecer Then
If Not horaProhibida Then
ThisWorkbook.Save
Mdulo6 - 2
End If
If Not ThisWorkbook.ReadOnly Then
ActiveWorkbook.Close
MsgBox "El archivo se ha cambiado a modo SOLO LECTURA y se han guardado los
cambios
realizados hasta ahora."
End If
Else
Permanecer = False
End If
End If
Else
Permanecer = True
End If
End Sub
Sub Cerrar_O_No()
Select Case CreateObject("WScript.Shell").Popup( _
"El archivo se cerrar y guardar tus cambios." & vbCr & _
"Quedan " & Espera & " segundos...", Espera, _
"Monitor de actividad...", 33)
Case -1, 1: Permanecer = False
Case 2: Permanecer = True
End Select

219
End Sub

220

Control Board

Hoja1 - 1
Hoja2 - 1
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
On Error Resume Next
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
On Error GoTo 0
Call copiar_incidencias
Sheets("Tabla dinmica").PivotTables("Tabla dinmica1").PivotCache.Refresh
Application.ScreenUpdating = True
MsgBox "Datos actualizados correctamente", 64
End Sub
Hoja3 - 1
Private Sub CommandButton2_Click()
''''''''''''''''''
Application.ScreenUpdating = False
On Error Resume Next
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
On Error GoTo 0
Call copiar_incidencias
Sheets(2).PivotTables("Tabla dinmica1").PivotCache.Refresh
Sheets("Control Board Visual").Activate
Application.ScreenUpdating = True
MsgBox "Datos actualizados correctamente", 64
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''actualiza el libro al
que esta ligado el av
ance del avion introducido desde teclado
If Target.Address = ActiveSheet.Range("A3").Address Then
If Not IsEmpty(Target) Then
msn = Target.Value
Range("B3").FormulaArray = "='C:\Users\usuario\Desktop\airbus\miguel gomez
segura\copia seguridad c
arpeta en red 25 04 2014\[MSN " & msn & " F7X.xlsm]FASE 1'!$O$5:$R$6"
End If
If IsEmpty(Target) Then
Range("B3").FormulaArray = ""
End If
End If
If Target.Address = ActiveSheet.Range("A6").Address Then
If Not IsEmpty(Target) Then
msn = Target.Value
Range("B6").FormulaArray = "='C:\Users\usuario\Desktop\airbus\miguel gomez
segura\copia seguridad c
arpeta en red 25 04 2014\[MSN " & msn & " F7X.xlsm]FASE 2'!$O$5:$R$6"
End If
If IsEmpty(Target) Then
Range("B6").FormulaArray = ""
End If
End If
If Target.Address = ActiveSheet.Range("A9").Address Then
If Not IsEmpty(Target) Then
msn = Target.Value
Range("B9").FormulaArray = "='C:\Users\usuario\Desktop\airbus\miguel gomez
segura\copia seguridad c
arpeta en red 25 04 2014\[MSN " & msn & " F7X.xlsm]FASE 3'!$O$5:$R$6"
End If
If IsEmpty(Target) Then
Range("B9").FormulaArray = ""
End If
End If
If Target.Address = ActiveSheet.Range("A12").Address Then
If Not IsEmpty(Target) Then
msn = Target.Value
Range("B12").FormulaArray = "='C:\Users\usuario\Desktop\airbus\miguel gomez
segura\copia seguridad
carpeta en red 25 04 2014\[MSN " & msn & " F7X.xlsm]FASE 4'!$O$5:$R$6"
End If
If IsEmpty(Target) Then

221
Range("B12").FormulaArray = ""
End If
End If
'MsgBox "El MSN introducido no es vlido"
'On Error GoTo 0
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'''''''''''''descripcion tareas diarias de cada fase
'faseI
If Target.Address <> "$C$4" Or Target.Address <> "$D$4" Or Target.Address <>
"$E$4" Or Target.Addre
ss <> "$F$4" Or Target.Address <> "$G$4" Or Target.Address <> "$H$4" Or
Target.Address <> "$I$4" Th
en
ActiveSheet.Range("K2").FormulaR1C1 = ""
End If
If Target.Address <> "$C$7" Or Target.Address <> "$D$7" Or Target.Address <>
"$E$7" Or Target.Addre
ss <> "$F$7" Or Target.Address <> "$G$7" Or Target.Address <> "$H$7" Or
Target.Address <> "$I$7" Th
en
Hoja3 - 2
ActiveSheet.Range("K2").FormulaR1C1 = ""
End If
If Target.Address <> "$C$10" Or Target.Address <> "$D$10" Or Target.Address
<> "$E$10" Or Target.Ad
dress <> "$F$10" Or Target.Address <> "$G$10" Or Target.Address <> "$H$10"
Then
ActiveSheet.Range("K2").FormulaR1C1 = ""
End If
If Target.Address = "$C$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Preparacin de grada y posicionamiento
de revestimiento supe
rior y costillas de cajn." & Chr(10) & "Posicionamiento de revestimiento
inferior y resto de costi
llas de cajn."
End If
If Target.Address = "$D$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Taladrado de unin entre revestimiento
inferior, larguero ce
ntral y costillas de cajn."
Call ajustartexto
End If
If Target.Address = "$E$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de estructura con
revestimiento inferior y de larg
uero central con revestimiento superior."
Call ajustartexto
End If
If Target.Address = "$F$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Posicionado y taladrado previo de
herrajes de actuadores y p
osicionado de largueros posteriores." & Chr(10) & "Posicionado y taladrado de
marcos de actuadores
(titaniio) y de elementos de borde de salida (costillas TER)."
Call ajustartexto
End If
If Target.Address = "$G$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Posicionado de costillas de puntos de
giro y rigizadores de
borde de salida."
Call ajustartexto
End If
If Target.Address = "$H$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Posicionado de herrajes de actuadorers
equipados y straps de
borde de salida, localizados en revestimiento inferior." & Chr(10) &
"Remachado de herrajes de act
uadores equipados y marcos de tapas de acceso."
Range("k2", "m9").Merge
Call ajustartexto
End If
If Target.Address = "$I$4" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Finalizacin de estructura de cajn
lateral."
Call ajustartexto
End If

222
'faseII
If Target.Address = "$C$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de ribs de 1 a 5. Herrajes,
actuador y mariposa."
& Chr(10) & "Situacin y taladrado definitivo herrajes. / Situacin de straps
en rev. superior, c
olocacin y taladrado definitivo de larguerillos out e inboard."
End If
If Target.Address = "$D$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = " Situacin y taladrado definitivo de
perfiles de herrajes y
bandas portatuercas." & Chr(10) & "Situacin y taladrado definitivo costillas
1,11 Y 22. A rev. inf
erior y superior y taladros de intercambiabilidadde stas."
Call ajustartexto
End If
If Target.Address = "$E$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Taladrado y fresado de rigizadores y
herrajes 1 a 6. Equipad
o de herrajes de fibra. / Taladrado definitivo de bandas portatuercas en rev.
inferior y superior."
& Chr(10) & "Equipado de herrajes 1 y 2. Marco de titanio y larguero
inboard."
Call ajustartexto
End If
If Target.Address = "$F$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Montaje y remachado tuercas
remachables en costillas 1,11 Y
22." & Chr(10) & "Rebabado y limpieza cajn. Montaje de latiguillos en
herrajes 3,4,5 Y 6."
Call ajustartexto
Hoja3 - 3
End If
If Target.Address = "$G$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = " Rebabado de larqueros inboard y
outboard y remachado de lar
guero outboard y costilla 22." & Chr(10) & " Remachado de larguero outboard y
herrajes 4, 5 y 6 con
bandas portatuercas. /R3emachado costilla 11, posicionado costilla 1 y
remachado de bandas portatu
ercas."
Call ajustartexto
End If
If Target.Address = "$H$7" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de marco de titanio outboard
y rigizadores. Montaj
e herrajes 1, 2 y 3 para verificacin." & Chr(10) & "Remachado de bandas
portatuercas en rev inf. y
equipado completo de cajn."
Range("k2", "m9").Merge
Call ajustartexto
End If
'faseIII
If Target.Address = "$C$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Preparacin de grada y best fit." &
Chr(10) & "Taladrado de
rear fitting, larguero RS inboard con rear fitting. Posicionado de ambas T's.
Taladrado de front fi
tting."
End If
If Target.Address = "$D$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Posicionado de costillas flotantes.
Taladrado de splice de u
nin de largueros FS inboard y central." & Chr(10) & "Taladrado de unin
central con mq. semiautom
tica. Escariado de ambas T's. Finalizar equipado de costillas flotantes.
Nominar herrajes de caren
as E."
Call ajustartexto
End If
If Target.Address = "$E$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Posicionado y taladrado de herrajes de
carenas con ambos rev
estimientos. Taladrado de intercambiabilidad de unin a carenas. Finalizar
taladrado de ambas Ts.

223
Taladrado de ambas Ts con costtilla RIB 0." & Chr(10) & "Taladrado de
costilla interior RIB 1. Tal
adrado parcial de herrajes de carenas con ambos revestimientos. Equipado de
herrajes de carenas con
T/R. Fresado en ambos revestimientos para cogida de herrajes interiores de
cajn."
Call ajustartexto
End If
If Target.Address = "$F$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Finalizar taladrado de herrajes
interiores de cajn y costil
la interior RIB 1. Premontaje de zona anterior. Realizacin de zonas de masas
en front fitting."
Call ajustartexto
End If
If Target.Address = "$G$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de RIB0 a rear fitting y a
angulares anteriores. S
ellado y remachado parcial de herrajes de carenas superiores e inferiores.
Remachado parcial de sop
ortes interiores de RIB 1 con ambos revestimientos. Remachado de STRG 1
connection BRKT. Cierre de
cajones. Remachado parcial de RIB 0 y ambas Ts. Remachado de soportes de
instalaciones. Finalizar
remachado de RIB 0 con ambas TS y angulares de unin a front fitting."
Call ajustartexto
End If
If Target.Address = "$H$10" Then
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de costilla interior de
cajn con rear fitting. Fi
nalizar remachado de herrajes interiores de cajn de RIB 1 con revestimiento
inferior. Pintar remac
hes en hueco entre costillas de cajn RIB 0 y RIB 1. Cierre de cajones.
Remachado de largueros RS i
nboard y marcos de titanio inboard. Remachado de pefiles esquineros con
larguero central. Comprobar
ausencia de FOD." & Chr(10) & "Remachado de front fitting con ambos
revestimientos y larguero cent
ral anterior. Remachado de placas fail safe. Encapsulado de zonas de masas en
front fitting. Remach
ado de herrajes de giro 1 a 3 con revestimieno superior. Remachado de
angulares de unin a larguero
RS inboard. Remachado de bandas portatuercas. Remachado de T/R en almenas de
revestimiento inferio
r. Remachado de costilla B.S RIB 1. Remachado de soportes de instalaciones en
largueros RS inboard.
Instalacin de latiguillos de masa con herraje de giro N 3. Remachado de
largueros FS inboard y s
plice de unin a larguero" & _
"central(ambos cajones)."
Range("k2", "m9").Merge
Call ajustartexto
End If
If Target.Address = "$I$10" Then
Hoja3 - 4
ActiveSheet.Range("K2").FormulaR1C1 = "Remachado de costilla B.A RIB 1.
Remachado de angular y band
as portatuercas. Remachado de T/R en almenas de revestimiento inferior.
Comprobacin parcial de con
tinuidad. Extraccin de HTP de FASE III BIS a FASE III CARRO. "
Call ajustartexto
End If
End Sub
Hoja5 - 1
Private Sub DTPicker21_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift
As Integer, ByVal Call
backField As String, CallbackDate As Date)
End Sub
ThisWorkbook - 1
Private Sub Workbook_Open()
Application.ScreenUpdating = False
On Error Resume Next
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
On Error GoTo 0
Call copiar_incidencias
Application.ScreenUpdating = False
Sheets(4).Activate

224
Application.DisplayFullScreen = True
Application.ScreenUpdating = True
End Sub
UserForm1 - 1
Private Sub DTPicker1_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift
As Integer, ByVal Callb
ackField As String, CallbackDate As Date)
End Sub
actualizarlinks - 1
'actualizar links
Sub links()
On Error Resume Next
ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources
On Error GoTo 0
'Dim ws As Worksheet
' For Each ws In ThisWorkbook.Worksheets
'ws.Protect Password:="miguel", UserInterfaceONly:=True
'Next
End Sub
ajustar_texto - 1
Sub ajustartexto()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub
bordes - 1
Sub bordear()
'
' Macro2 Macro
'
'
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Selection.Borders(xlInsideVertical).LineStyle = xlNone
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
End Sub
copiar_almacen_incidencias - 1
Sub copiar_incidencias()
primero = 0
ThisWorkbook.Sheets(3).Activate
Range("A2").Activate
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(1, 0).Activate
Loop

225
If ActiveCell = Range("A2") Then
contador = 1
primero = 1
Set ultimaincidencia = Range("A1")
Set formato = Range("a2")
Else
Set ultimaincidencia = ActiveCell.Offset(-1, 0)
contador = ultimaincidencia.Value
End If
direccionarchivo = "C:\Users\usuario\Desktop\airbus\miguel gomez segura\copia
seguridad carpeta en
red 25 04 2014\Almacen Incidencias.xlsm"
On Error Resume Next
Workbooks(direccionarchivo).Save
Workbooks(direccionarchivo).Close
On Error GoTo 0
Workbooks.Open direccionarchivo
''''''''''''''''''''''''''''''''''''''''actualiza el avance de las fases
Workbooks("Almacen Incidencias.xlsm").Sheets(1).Activate
ActiveSheet.Range("A1").Activate
'''busca en 'almacen incidencias' la incidencia a partir de la cual hay que
copiar
If IsEmpty(ActiveCell) Then
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
ThisWorkbook.Sheets(2).Activate
Exit Sub
End If
Do While ActiveCell.Value <> contador
ActiveCell.Offset(1, 0).Activate
Loop
' en caso de que no haya nuevas incidencias, edita el formato de las
incidencias antiguas, actu
aliza estado y termina
If ActiveCell.Offset(1, 0).Value = Empty And primero = 0 Then
ThisWorkbook.Sheets(3).Activate
Range(Cells(2, 2), Cells(ultimaincidencia.Row, 17)).Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
End With
With Selection.Font
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("J:J").Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
End With
ThisWorkbook.Sheets(3).Activate
Range("D2").Activate
i = 1
Do While Not IsEmpty(ActiveCell)
If ActiveCell.Value <> Workbooks("Almacen Incidencias.xlsm").Sheets(1).Cell
s(i, 4).Value Then
copiar_almacen_incidencias - 2
ActiveCell.Value = Workbooks("Almacen Incidencias.xlsm").Sheets(1).Cells(i,
4).Value
End If
i = i + 1
ActiveCell.Offset(1, 0).Activate
Loop
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
ThisWorkbook.Sheets(2).Activate
Exit Sub
End If
'''copia todas las nuevas incidencias de 'almacen incidencias' a 'control
board ana'

226
If Not primero = 1 Then
ActiveCell.Offset(1, 0).Activate
End If
i = 1
contadornuevaincidencia = 0
Do While Not IsEmpty(ActiveCell)
filadestino = ultimaincidencia.Row + i
Range(ActiveCell, ActiveCell.Offset(0, 10)).Select
Selection.Copy Destination:=Workbooks("Control
Board.xlsm").Sheets(3).Cells(filadestino, 1)
i = i + 1
contadornuevaincidencia = contadornuevaincidencia + 1
ActiveCell.Offset(1, 0).Activate
Loop
Application.CutCopyMode = False
''''editar formato incidencias anteriores
ThisWorkbook.Sheets(3).Activate
Range(Cells(2, 2), Cells(ultimaincidencia.Row + contadornuevaincidencia,
17)).Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
End With
With Selection.Font
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Range("J:J").Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlCenter
End With
'''''''editar formato nuevas incidencias
Range(Cells(ultimaincidencia.Row + 1, 2), Cells(ultimaincidencia.Row +
contadornuevaincidencia, 17)
).Select
With Selection.Font
.Color = -16776961
.TintAndShade = 0
End With
''''''''''''actualizar estado incidencias
ThisWorkbook.Sheets(3).Activate
Range("D2").Activate
i = 1
Do While Not IsEmpty(ActiveCell)
If ActiveCell.Value <> Workbooks("Almacen
Incidencias.xlsm").Sheets(1).Cells(i, 4).Value Th
en
copiar_almacen_incidencias - 3
ActiveCell.Value = Workbooks("Almacen Incidencias.xlsm").Sheets(1).Cells(i,
4).Value
End If
i = i + 1
ActiveCell.Offset(1, 0).Activate
Loop
Workbooks("Almacen Incidencias.xlsm").Save
Workbooks("Almacen Incidencias.xlsm").Close
ThisWorkbook.Sheets(2).Activate
End Sub

Vous aimerez peut-être aussi