Dim ph as String
ph= "PH (LC)"
If InStr(Cells(1, c), ph) Then ph = Cells(1, c)
I am trying to use formula. It works great when the contains cell is short. as in one line in the formula bar. However sometimes it will be much longer up to four lines in the formula bar. Would the lenghth cause it to not set the ph variable to the entire cell contents?
ph= "PH (LC)"
If InStr(Cells(1, c), ph) Then ph = Cells(1, c)
I am trying to use formula. It works great when the contains cell is short. as in one line in the formula bar. However sometimes it will be much longer up to four lines in the formula bar. Would the lenghth cause it to not set the ph variable to the entire cell contents?