Excelerate2004
Programmer
Hello to all,
I'm trying to get the following to work in VBA for excel:
If Sheets("affydata").Range(Max("C2:F2")).Value = C2 Then
I2 = "A"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = D2 Then
I2 = "C"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = E2 Then
I2 = "G"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = F2 Then
I2 = "T"
End If
Is it possible to use the max function in this way within VBA??
Thanks
I'm trying to get the following to work in VBA for excel:
If Sheets("affydata").Range(Max("C2:F2")).Value = C2 Then
I2 = "A"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = D2 Then
I2 = "C"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = E2 Then
I2 = "G"
End If
If Sheets("affydata").Range(Max("C2:F2")).Value = F2 Then
I2 = "T"
End If
Is it possible to use the max function in this way within VBA??
Thanks