Private Sub CommandButton1_Click()
Cells.Select
Selection.Interior.ColorIndex = xlNone
Range("M15").Select
Dim iRet As Integer
Dim strPrompt As String
Dim strTitle As String
strPrompt = "Oranje papier in de printer leggen"
[COLOR="#FF0000"]strTitle = "CvO 2013" & "__€__" & Worksheets("Blad6").Range("Z$132")[/COLOR]
iRet = MsgBox(strPrompt, vbOKCancel, strTitle)
If iRet = vbOK Then
'MsgBox "Oranje papier in de printer leggen!", vbOKCancel + vbInformation, "CvO 2013"
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=2, Collate _
:=True
Cells.Select
ActiveSheet.Shapes("Picture 4").Select
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 0.75
Range("A1:H37").Select
Range("H1").Activate
Selection.Interior.ColorIndex = xlNone
With Selection.Interior
.ColorIndex = 43
.Pattern = xlSolid
End With
Range("F19").Select
ActiveWindow.SmallScroll Down:=-18
Range("F5").Select
Selection.Interior.ColorIndex = 8
Range("F6:G6").Select
Selection.Interior.ColorIndex = 8
Range("D9").Select
Selection.Interior.ColorIndex = 8
Range("D14").Select
Selection.Interior.ColorIndex = 8
Range("D20").Select
Selection.Interior.ColorIndex = 8
Range("D23").Select
Selection.Interior.ColorIndex = 8
Range("D32:D35,E32,F32,D28,D27,D22,D21,D16,D15,D8").Select
Range("D8").Activate
ActiveWindow.SmallScroll Down:=-9
Selection.Interior.ColorIndex = xlNone
Range("F15").Select
ActiveWindow.SmallScroll Down:=-15
Else
MsgBox "Projectgegevens worden niet geprint"
'End If
Cells.Select
ActiveSheet.Shapes("Picture 4").Select
Selection.ShapeRange.IncrementLeft -0.75
Selection.ShapeRange.IncrementTop 0.75
Range("A1:H37").Select
Range("H1").Activate
Selection.Interior.ColorIndex = xlNone
With Selection.Interior
.ColorIndex = 43
.Pattern = xlSolid
End With
Range("F19").Select
ActiveWindow.SmallScroll Down:=-18
Range("F5").Select
Selection.Interior.ColorIndex = 8
Range("F6:G6").Select
Selection.Interior.ColorIndex = 8
Range("D9").Select
Selection.Interior.ColorIndex = 8
Range("D14").Select
Selection.Interior.ColorIndex = 8
Range("D20").Select
Selection.Interior.ColorIndex = 8
Range("D23").Select
Selection.Interior.ColorIndex = 8
Range("D32:D35,E32,F32,D28,D27,D22,D21,D16,D15,D8").Select
Range("D8").Activate
ActiveWindow.SmallScroll Down:=-9
Selection.Interior.ColorIndex = xlNone
Range("F15").Select
ActiveWindow.SmallScroll Down:=-15
End If
End Sub