Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If within select statement
#3
Solved: 11 Years, 4 Months ago
hi Swethaaaaaaa,

See you code below for Case phone

Code:
Case "Phone"
If PrefCom = "Home Phone" Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtH").Set "(998)876-4534"
elseif PrefCom = "Mobile" Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_5").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set "(987)876-2345"
else
Browser("TalonPro Solutions").Page("TalonPro Solutions_3").WebEdit("ctl00$ContentPlaceHolder1$txtWorkPhone").Set ("(987)765-7654)")
End If
Browser("TalonPro Solutions").Page("TalonPro Solutions_3").WebEdit("ctl00_ContentPlaceHolder1_txtWorkPhone").Set ("(987)765-7654)")


After End if you have work phone selected.
Remove that and Try


Thanks

Try this code

Code:
Case "Phone"
If PrefCom = "Home Phone" Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtH").Set "(998)876-4534"
elseif PrefCom = "Mobile" Then
Browser("TalonPro Solutions").Page("TalonPro Solutions_5").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set "(987)876-2345"
elseif PrefCom = "WorkPhone"
Browser("TalonPro Solutions").Page("TalonPro Solutions_3").WebEdit("ctl00$ContentPlaceHolder1$txtWorkPhone").Set ("(987)765-7654)")
End If
Reply


Messages In This Thread
If within select statement - by swetha.b - 12-10-2009, 04:04 PM
RE: If within select statement - by Saket - 12-10-2009, 04:20 PM
RE: If within select statement - by nil - 12-10-2009, 04:34 PM
RE: If within select statement - by Saket - 12-10-2009, 04:40 PM
RE: If within select statement - by nil - 12-10-2009, 04:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Range in Select Case Statement Studymode 0 1,506 12-14-2017, 06:18 PM
Last Post: Studymode
  Using Select Case Statement Studymode 0 11,720 12-13-2017, 05:55 AM
Last Post: Studymode

Forum Jump:


Users browsing this thread: 3 Guest(s)