It must be a Friday meltdown-thing, but Happy Friday everyone
What is the best way to change the current year? I need to subtract 3 or 10 years.
I have:
thx ;-)
Im on my way home. lol
Would ths work?
What is the best way to change the current year? I need to subtract 3 or 10 years.
I have:
Code:
intYear = Year(Now)
With Browser("Preferences").Page("Preferences")
.WebList("Select_Tax_Year").Select (intYear - 3 ) '"2008"
.WebElement("Clear").Click
.WebList("Select_Tax_Year").Select (intYear - 10 ) '"2001"
.WebElement("Close").Click
End With
Im on my way home. lol
Would ths work?
Code:
intYear = year(Now.AddYears(-3))
and
intYear = year(Now.AddYears(-10))