View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
falstaff[_3_] falstaff[_3_] is offline
external usenet poster
 
Posts: 1
Default Help with an If statement VBA


Hello,

no Problem, do it like this:


Code
-------------------
If (Range("A1").Value = "Referee") AND (Range("B1").Value = "U21" Or Range("B1").Value = "U19" Or Range("B1").Value = "U17") Then
Range("G23").Value = "Value 1"
End I
-------------------


Hope it's the solution you need..

--
falstaf
-----------------------------------------------------------------------
falstaff's Profile: http://www.excelforum.com/member.php...fo&userid=1453
View this thread: http://www.excelforum.com/showthread.php?threadid=26156