Hello I am trying to select text in a range and if the case is met then have a statment placed in a second range. The problem is I can see the selection of range works but for the case nothing seems to fire. Could I have some pointers on my error please. Here is my code.
Sub TEST()
Dim LASTROW As Integer
LASTROW = Range("A1").End(xlDown).Row
Sheets("FXT Deals").Range("E1:AM" & LASTROW).Select
Select Case Range("H1:H" & LASTROW).TEXT
Case Is = "JPYAUD"
Range("AF1:AF" & LASTROW).T = "Market Convention is AUDJPY-within range"
Case "JPYEUR"
Range("AC1:AC" & LASTROW).Value = "Market Convention is EURJPY-within range"
Case Else
End Select
End Sub
Sub TEST()
Dim LASTROW As Integer
LASTROW = Range("A1").End(xlDown).Row
Sheets("FXT Deals").Range("E1:AM" & LASTROW).Select
Select Case Range("H1:H" & LASTROW).TEXT
Case Is = "JPYAUD"
Range("AF1:AF" & LASTROW).T = "Market Convention is AUDJPY-within range"
Case "JPYEUR"
Range("AC1:AC" & LASTROW).Value = "Market Convention is EURJPY-within range"
Case Else
End Select
End Sub