Hello everyone,
How do i get my macro to NOT care if cell has caps in it while using an if statement. Here is a bit of my code:
If my cell in (myRow, "H") has INDYMAC or indymac or Indymac, then the macro doesn't do what i want it to. Is there a way to tell the macro to just look at the letters instead of which letters are caps? Or do i have to add additional If statements for other possibilities?
Thanks in advance for any help!
How do i get my macro to NOT care if cell has caps in it while using an if statement. Here is a bit of my code:
Code:
If Cells(myRow, "H") = "IndyMac" Then
With Range(Cells(myRow, 2), Cells(myRow, 10))
.Copy Sheets("INDYMAC").Cells(Rows.Count, "B").End(xlUp).Offset(1)
.Delete xlUp
End With
Else........(Blah blah blah)
If my cell in (myRow, "H") has INDYMAC or indymac or Indymac, then the macro doesn't do what i want it to. Is there a way to tell the macro to just look at the letters instead of which letters are caps? Or do i have to add additional If statements for other possibilities?
Thanks in advance for any help!