Hi
I have two named ranges (month and year). Both ranges are only 1 cell, so they are named cells, if there is such a thing?
When I switch the sheet question I would like the current value of the ranges to appear in cells K29 and K30.
I have treid this code:
However, I keep on getting a debug, why?
Cheers
I have two named ranges (month and year). Both ranges are only 1 cell, so they are named cells, if there is such a thing?
When I switch the sheet question I would like the current value of the ranges to appear in cells K29 and K30.
I have treid this code:
Code:
Private Sub Worksheet_Activate()
Range("K29").Value = Range("month").Value
Range("K30").Value = Range("year").Value
End Sub
However, I keep on getting a debug, why?
Cheers