Wie kan me helpen ben al de hele dag bezig maar het lukt me niet om deze codes samen te voegen.
Op onderstaande manier krijg ik een fout melding.
De codes werken zonder elkaar wel, wat doet deze beginneling fout of wil ik teveeel.
Of wie weet de oplossing voor mij.
De eerste code laat regels verbergen bij bepaalde waarden in i5 en de 2de code moet beveiligde cellen openen zodat ik deze bij Ja in cel C8 kan invullen.
Bij Nee of leeg moeten de cellen weer beveiligd zijn.
De cellen die ik wil invullen zijn F20 tm F23 en F26 tm F29.
Alvast bedankt
Mvrgr Maarten
Op onderstaande manier krijg ik een fout melding.
De codes werken zonder elkaar wel, wat doet deze beginneling fout of wil ik teveeel.
Of wie weet de oplossing voor mij.
De eerste code laat regels verbergen bij bepaalde waarden in i5 en de 2de code moet beveiligde cellen openen zodat ik deze bij Ja in cel C8 kan invullen.
Bij Nee of leeg moeten de cellen weer beveiligd zijn.
De cellen die ik wil invullen zijn F20 tm F23 en F26 tm F29.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
ProcA Target
ProcB Target
End Sub
Private Sub ProcA(Target As Range)
If Intersect(Target, Range("C6,C7,C10")) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Select Case Range("i5").Value
Case Is = "Optima 0,4DVastGeheel staal", "Optima 0,5DVastGeheel staal", "Optima 0,6DVastGeheel staal", "Type 37 CPPVastGeheel staal", "Type 37 FPPVastGeheel staal", "HR WartsilaVastGeheel staal", "MAN 0,5DVastGeheel staal", "MAN 0,6DVastGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:33,48:58,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DVastGeheel RVS", "Optima 0,5DVastGeheel RVS", "Optima 0,6DVastGeheel RVS", "Type 37 CPPVastGeheel RVS", "Type 37 FPPVastGeheel RVS", "HR WartsilaVastGeheel RVS", "MAN 0,5DVastGeheel RVS", "MAN 0,6DVastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:33,60:63,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DVastRing RVS", "Optima 0,5DVastRing RVS", "Optima 0,6DVastRing RVS", "Type 37 CPPVastRing RVS", "Type 37 FPPVastRing RVS", "HR WartsilaVastRing RVS", "MAN 0,5DVastRing RVS", "MAN 0,6DVastRing RVS"
Cells.EntireRow.Hidden = False
Range("30:33,51:52,60:61,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DVastInlaat + ring RVS", "Optima 0,5DVastInlaat + ring RVS", "Optima 0,6DVastInlaat + ring RVS", "Type 37 CPPVastInlaat + ring RVS", "Type 37 FPPVastInlaat + ring RVS", "HR WartsilaVastInlaat + ring RVS", "MAN 0,5DVastInlaat + ring RVS", "MAN 0,6DVastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,52:52,60:62,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DVastUitlaat + ring RVS", "Optima 0,5DVastUitlaat + ring RVS", "Optima 0,6DVastUitlaat + ring RVS", "Type 37 CPPVastUitlaat + ring RVS", "Type 37 FPPVastUitlaat + ring RVS", "HR WartsilaVastUitlaat + ring RVS", "MAN 0,5DVastUitlaat + ring RVS", "MAN 0,6DVastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,51:51,60:61,63:63,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DThrusterGeheel staal", "Optima 0,5DThrusterGeheel staal", "Optima 0,6DThrusterGeheel staal", "Type 37 CPPThrusterGeheel staal", "Type 37 FPPThrusterGeheel staal", "HR WartsilaThrusterGeheel staal", "MAN 0,5DThrusterGeheel staal", "MAN 0,6DThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,48:58,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DThrusterGeheel RVS", "Optima 0,5DThrusterGeheel RVS", "Optima 0,6DThrusterGeheel RVS", "Type 37 CPPThrusterGeheel RVS", "Type 37 FPPThrusterGeheel RVS", "HR WartsilaThrusterGeheel RVS", "MAN 0,5DThrusterGeheel RVS", "MAN 0,6DThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,60:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DThrusterRing RVS", "Optima 0,5DThrusterRing RVS", "Optima 0,6DThrusterRing RVS", "Type 37 CPPThrusterRing RVS", "Type 37 FPPThrusterRing RVS", "HR WartsilaThrusterRing RVS", "MAN 0,5DThrusterRing RVS", "MAN 0,6DThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,51:52,60:61,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DThrusterInlaat + ring RVS", "Optima 0,5DThrusterInlaat + ring RVS", "Optima 0,6DThrusterInlaat + ring RVS", "Type 37 CPPThrusterInlaat + ring RVS", "Type 37 FPPThrusterInlaat + ring RVS", "HR WartsilaThrusterInlaat + ring RVS", "MAN 0,5DThrusterInlaat + ring RVS", "MAN 0,6DThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,52:52,60:62,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DThrusterUitlaat + ring RVS", "Optima 0,5DThrusterUitlaat + ring RVS", "Optima 0,6DThrusterUitlaat + ring RVS", "Type 37 CPPThrusterUitlaat + ring RVS", "Type 37 FPPThrusterUitlaat + ring RVS", "HR WartsilaThrusterUitlaat + ring RVS", "MAN 0,5DThrusterUitlaat + ring RVS", "MAN 0,6DThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,51:51,60:61,63:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DDraaibaarGeheel staal", "Optima 0,5DDraaibaarGeheel staal", "Optima 0,6DDraaibaarGeheel staal", "Type 37 CPPDraaibaarGeheel staal", "Type 37 FPPDraaibaarGeheel staal", "HR WartsilaDraaibaarGeheel staal", "MAN 0,5DDraaibaarGeheel staal", "MAN 0,6DDraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,48:58,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DDraaibaarGeheel RVS", "Optima 0,5DDraaibaarGeheel RVS", "Optima 0,6DDraaibaarGeheel RVS", "Type 37 CPPDraaibaarGeheel RVS", "Type 37 FPPDraaibaarGeheel RVS", "HR WartsilaDraaibaarGeheel RVS", "MAN 0,5DDraaibaarGeheel RVS", "MAN 0,6DDraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,60:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DDraaibaarRing RVS", "Optima 0,5DDraaibaarRing RVS", "Optima 0,6DDraaibaarRing RVS", "Type 37 CPPDraaibaarRing RVS", "Type 37 FPPDraaibaarRing RVS", "HR WartsilaDraaibaarRing RVS", "MAN 0,5DDraaibaarRing RVS", "MAN 0,6DDraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,51:52,60:61,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DDraaibaarInlaat + ring RVS", "Optima 0,5DDraaibaarInlaat + ring RVS", "Optima 0,6DDraaibaarInlaat + ring RVS", "Type 37 CPPDraaibaarInlaat + ring RVS", "Type 37 FPPDraaibaarInlaat + ring RVS", "HR WartsilaDraaibaarInlaat + ring RVS", "MAN 0,5DDraaibaarInlaat + ring RVS", "MAN 0,6DDraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,52:52,60:62,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "Optima 0,4DDraaibaarUitlaat + ring RVS", "Optima 0,5DDraaibaarUitlaat + ring RVS", "Optima 0,6DDraaibaarUitlaat + ring RVS", "Type 37 CPPDraaibaarUitlaat + ring RVS", "Type 37 FPPDraaibaarUitlaat + ring RVS", "HR WartsilaDraaibaarUitlaat + ring RVS", "MAN 0,5DDraaibaarUitlaat + ring RVS", "MAN 0,6DDraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:33,35:36,51:51,60:61,63:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedVastGeheel staal", "VG40VastGeheel staal", "VG50VastGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,48:58,63:63,82:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedVastGeheel RVS", "VG40VastGeheel RVS", "VG50VastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedVastRing RVS", "VG40VastRing RVS", "VG50VastRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,51:52,60:61,63:63,82:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedVastInlaat + ring RVS", "VG40VastInlaat + ring RVS", "VG50VastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedVastUitlaat + ring RVS", "VG40VastUitlaat + ring RVS", "VG50VastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedThrusterGeheel staal", "VG40ThrusterGeheel staal", "VG50ThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,48:58,63:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedThrusterGeheel RVS", "VG40ThrusterGeheel RVS", "VG50ThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedThrusterRing RVS", "VG40ThrusterRing RVS", "VG50ThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,51:52,60:61,63:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedThrusterInlaat + ring RVS", "VG40ThrusterInlaat + ring RVS", "VG50ThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedThrusterUitlaat + ring RVS", "VG40ThrusterUitlaat + ring RVS", "VG50ThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedDraaibaarGeheel staal", "VG40DraaibaarGeheel staal", "VG50DraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,48:58,63:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedDraaibaarGeheel RVS", "VG40DraaibaarGeheel RVS", "VG50DraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedDraaibaarRing RVS", "VG40DraaibaarRing RVS", "VG50DraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,51:52,60:61,63:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedDraaibaarInlaat + ring RVS", "VG40DraaibaarInlaat + ring RVS", "VG50DraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A ModifiedDraaibaarUitlaat + ring RVS", "VG40DraaibaarUitlaat + ring RVS", "VG50DraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalVastGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,38:38,48:58,63:63,82:86,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalVastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,38:38,52:52,60:63,82:86,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalVastRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,38:38,51:52,60:61,63:63,82:86,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalVastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,38:38,52:52,60:63,82:86,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalVastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,38:38,52:52,60:63,82:86,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,48:58,63:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,51:52,60:61,63:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalDraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,48:58,63:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalDraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalDraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,51:52,60:61,63:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalDraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A PlatstaalDraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,29:29,32:33,35:36,38:38,52:52,60:63,71:75,82:86,88:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalVastGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:31,38:38,48:58,82:85,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalVastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:31,38:38,60:63,82:85,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalVastRing RVS"
Cells.EntireRow.Hidden = False
Range("30:31,38:38,51:52,60:61,82:85,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalVastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,38:38,52:52,60:62,82:85,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalVastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,38:38,51:51,60:61,63:63,82:85,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,48:58,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,60:63,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,51:52,60:61,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,52:52,60:62,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,51:51,60:61,63:63,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalDraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,48:58,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalDraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,60:63,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalDraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,51:52,60:61,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalDraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,52:52,60:62,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19A RondstaalDraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:31,35:36,38:38,51:51,60:61,63:63,71:75,82:85,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPVastGeheel staal", "19B FPPVastGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:32,48:58,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPVastGeheel RVS", "19B FPPVastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:32,60:63,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPVastRing RVS", "19B FPPVastRing RVS"
Cells.EntireRow.Hidden = False
Range("30:32,51:52,60:61,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPVastInlaat + ring RVS", "19B FPPVastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,52:52,60:62,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPVastUitlaat + ring RVS", "19B FPPVastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,51:51,60:61,63:63,87:87,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPThrusterGeheel staal", "19B FPPThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,48:58,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPThrusterGeheel RVS", "19B FPPThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,60:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPThrusterRing RVS", "19B FPPThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,51:52,60:61,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPThrusterInlaat + ring RVS", "19B FPPThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,52:52,60:62,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPThrusterUitlaat + ring RVS", "19B FPPThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,51:51,60:61,63:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPDraaibaarGeheel staal", "19B FPPDraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,48:58,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPDraaibaarGeheel RVS", "19B FPPDraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,60:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPDraaibaarRing RVS", "19B FPPDraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,51:52,60:61,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPDraaibaarInlaat + ring RVS", "19B FPPDraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,52:52,60:62,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "19B CPPDraaibaarUitlaat + ring RVS", "19B FPPDraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("30:32,35:36,51:51,60:61,63:63,71:75,87:96,100:101,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingVastGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,48:58,63:63,82:87,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingVastGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingVastRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,51:52,60:61,63:63,82:87,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingVastInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingVastUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,38:38,52:52,60:63,82:87,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingThrusterGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,48:58,63:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingThrusterGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingThrusterRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,51:52,60:61,63:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingThrusterInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingThrusterUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingDraaibaarGeheel staal"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,48:58,63:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingDraaibaarGeheel RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingDraaibaarRing RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,51:52,60:61,63:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingDraaibaarInlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "WingDraaibaarUitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("23:23,25:25,27:27,29:29,30:33,35:36,38:38,52:52,60:63,71:75,82:96,148:861,863:65536").EntireRow.Hidden = True
Case Is = "", "Vast", "Thruster", "Draaibaar", "Geheel staal", "Geheel RVS", "Ring RVS", "Inlaat + ring RVS", "Uitlaat + ring RVS"
Cells.EntireRow.Hidden = False
Range("148:861,863:65536").EntireRow.Hidden = True
End Select
Application.ScreenUpdating = True
End Sub
Private Sub ProcB(Target As Range)
If Target.Address = "$C$8" Then
Blad13.Unprotect "maarten1962"
If Target.Value = "Ja" Then
Union([F20:F23], [F26:F29]).Locked = False
Else
Union([F20:F23], [F26:F29]).Locked = True
End If
Blad13.Protect "maarten1962"
End If
End Sub
Alvast bedankt
Mvrgr Maarten
Laatst bewerkt: