![]() |
if or statement
how would i go about doing:
if range("nightly!cu9").value = "AT&T" or "Verizon" then application.run "addfeatures" end if i dont know how to do the OR part thanks in advance |
if or statement
One way is to write: if range("nightly!cu9").value = "AT&T" then application.run "addfeatures" elseif range("nightly!cu9").value = "Verizon" then application.run "addfeatures" end i -- daveric ----------------------------------------------------------------------- daverico's Profile: http://www.excelforum.com/member.php...fo&userid=1566 View this thread: http://www.excelforum.com/showthread.php?threadid=27232 |
if or statement
Hi
one way if range("nightly!cu9").value = "AT&T" OR range("nightly!cu9").value ="Verizon" then application.run "addfeatures" end if Cheers JulieD "choice" wrote in message ... how would i go about doing: if range("nightly!cu9").value = "AT&T" or "Verizon" then application.run "addfeatures" end if i dont know how to do the OR part thanks in advance |
if or statement
Bit neater <g
With range("nightly!cu9") If .value = "AT&T" OR .value ="Verizon" then application.run "addfeatures" end if End With -- HTH RP "JulieD" wrote in message ... Hi one way if range("nightly!cu9").value = "AT&T" OR range("nightly!cu9").value ="Verizon" then application.run "addfeatures" end if Cheers JulieD "choice" wrote in message ... how would i go about doing: if range("nightly!cu9").value = "AT&T" or "Verizon" then application.run "addfeatures" end if i dont know how to do the OR part thanks in advance |
All times are GMT +1. The time now is 04:19 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com