09-19-2011, 10:36 PM
These work fine:
This works"
But these dont:
nor these:
Can I use a variable to select a drop down's list value?
Code:
intYear = Year(Now) '=2011
intYear = Year(Now) - 3 '=2008
intYear = Year(Now) - 10 '=2001
This works"
Code:
'Browser("Preferences").Page("Preferences").WebList("Select_Tax_Year").Select "2001"
But these dont:
Code:
With Browser("Preferences").Page("Preferences")
.WebList("Select_Tax_Year").Select "Year(Now) - 3" '"2008"
.WebList("Select_Tax_Year").Select "intYear" '"2001"
nor these:
Code:
.WebList("Select_Tax_Year").Select (Year(Now) - 3) '"2008"
.WebList("Select_Tax_Year").Select intYear '"2001"
Can I use a variable to select a drop down's list value?