Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Address = "$N$12" Or Target.Address = "$N$13" Or Target.Address = "$N$14" Or Target.Address = "$F$12" Then
Dim iPic As Integer
Dim Sh As String
Dim nr As Integer
nr = Range("M5").Value
Dim Afb As String
On Error GoTo Verder1
Afb = "Figuur "
GoTo Go
Verder1:
On Error GoTo verder2
Afb = "Afbeelding "
GoTo Go
verder2:
Afb = "Picture "
Go:
Sh = "gasstraat"
On Error GoTo Break
'alle Figuren uit
' Figuur R300CVIF aan
If nr = 2 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVIF").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300KromschroderF aan
If nr = 1 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300KROMF").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300CVIDRF aan
If nr = 3 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVIDRF").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300CVI aan
If nr = 5 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVI").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300Kromschroder aan
If nr = 4 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300KROM").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300CVIDR aan
If nr = 6 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVIDR").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R2700Dungs aan
If nr = 7 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.2800DUNGS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R2700SKP aan
If nr = 8 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.2800SKP").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R2700KROMDR aan
If nr = 9 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.2800DR").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R2700VPS3WEG aan
If nr = 10 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.2700VPS3WEG").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R27003WEG aan
If nr = 11 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.27003WEG").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R2700VPS aan
If nr = 12 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.2700VPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400DR3Kromschroder aan
If nr = 13 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500DR3").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400Kromschroder aan
If nr = 14 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400DR3VPSKromschroder aan
If nr = 21 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500DR3VPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400VPSKromschroder aan
If nr = 22 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500VPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400DR3Dungs aan
If nr = 23 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500DDR3").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400Dungs aan
If nr = 24 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500D").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400DR3VPSDungs aan
If nr = 25 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500DDR3VPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400VPSDungs aan
If nr = 26 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500DVPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300KromschroderDRF aan
If nr = 15 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300KROMDRF").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300KromschroderDR aan
If nr = 16 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300KROMDR").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300CVIFVPS aan
If nr = 17 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVIFVPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R300CVIVPS aan
If nr = 18 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.300CVIVPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400DR3SKP aan
If nr = 19 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500SKPDR3").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R3400SKP aan
If nr = 20 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.3500SKP").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R600F aan
If nr = 27 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.600F").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R600 aan
If nr = 28 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.600").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R600FVPS aan
If nr = 29 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.600FVPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R600F aan
If nr = 30 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.600VPS").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R30F aan
If nr = 31 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.30F").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
' Figuur R30 aan
If nr = 32 Then
Sheets("Schema's").Select
ActiveSheet.Shapes("G.30").Select
Selection.Copy
Sheets("gasstraat").Select
ActiveSheet.Paste
End If
If nr >= 1 Then
Application.DisplayAlerts = False
Sheets("Schema's").Delete
Sheets("Voorblad").Select
Range("D14").Select
Application.DisplayAlerts = True
End If
End If
Exit Sub
Break:
MsgBox "fout."
End Sub