Beste Ingrid, dit werkt prima, maar of ik op het goede pad ben met mijn macro's ?
Dit heb ik er van gebrouwen.
Sub InvoerUitgavenDatumVandaag() 'Ga naar de datum van vandaag
Dim strWachtwoord As String
strWachtwoord = "ikke"
ActiveSheet.Unprotect Password:=strWachtwoord
Application.Goto Reference:="InvoerUitgavenDatumControleGetal"
If ActiveCell.Value = 1 Then
Application.Goto Reference:="InvoerUitgavenDatumControleGebied"
Selection.SpecialCells(xlCellTypeFormulas, 1).Select
ActiveCell.Offset(0, 3).Select
ActiveSheet.Protect Password:=strWachtwoord, UserInterfaceOnly:=True
Else
MsgBox "Is dit het juiste jaar wel, kijk even naar het jaartal ?", vbInformation, " GEEN DATUM GEVONDEN "
End If
End Sub