I want to find the text in a worksheet that resides in two cells (it is a column heading split into 2 cells). What code should I use to find the text string split into 2 cells? Any insight would be helpful! Thanks, Rasberry
'
' -Code assumes columns A and B are the headings
'
Sub FindEm()
dim i as long
dim iFound as long
dim sTemp as string
for i = 1 to 1000 'Your first row to your last row
sTemp = Range("A" & i).value & " " & Range("B" & i).value
if sTemp = "Rtn on Equity" Then
iFound = i
Exit For
end if
next
'Continue on from here with i as the row number with the found heading
End Sub