codedreamer
New Member
I am trying to understand the relationship between if then else statements and select case. So I tried to convert if then to select case, but I do not know how to do it. This is all I could come up with. Pointing to easy to understand article or a simple explanation would be appreciated.
Thank you,
codedreamer.
[pre]
[/pre]
Thank you,
codedreamer.
[pre]
Code:
If range (“a1”).value = “apple” then
If range (“b2”).value = 3 then
(“C3”).value =4
(“d3”).value = 5
Endif
Else
If range (“a1”).value = “pear” then
If range (“b2”).value = 4 then
(“C3”).value =8
(“d3”).value = 10
Endif
If range (“a1”).value = “orange” then
If range (“b2”).value = 1 then
(“C3”).value =6
(“d3”).value = 9
Endif
Endif
Select case fruit
Case apple,pear,orange
no idea what is next