Hi,
Part of the user form that I am using displays the current tax year automatically when tabbed into it from the following code:
this is great if the system date is less than or equal to 05/04/yyyy, however, if the system date is greater than or equal to 06/04/yyyy then the tax year would have to be displayed as
Code
Private Sub TaxYear_enter()
TaxYear = format (date("yy") & " / " & format(date("yy") +1
End Sub
unfortunately my vba is limited and i am looking for vba code that will be able to do this comparison with the system date and then display the correct tax year (result) in the format yy / yy (i.e 12 / 13 for current date or 13 / 14 after 6th April 2013 and be automatically adjusted for future subsequent years)
many thanks...