Excel doesn't let you initialize values at declaration as they're already initialized to zero. To do what you want just break it up into two lines.
Dim yearnr As Integer
yearnr = 18
Excel doesn't let you initialize values at declaration as they're already initialized to zero. To do what you want just break it up into two lines.
Dim yearnr As Integer
yearnr = 18