abenitez77
Board Regular
- Joined
- Dec 30, 2004
- Messages
- 149
I am trying to search for something on the spreadsheet. my code to search is below. the text I am searching for is this :
"COST REQUEST
EFF. DATE"
I think there is a hidden symbol ...either carriage return or line feed after "COST REQUEST" but when I put a vbCrLf in my search (ie. "Cost Request" & vbcrlf & "EFF.Date"
"COST REQUEST
EFF. DATE"
Code:
Set FoundCell = SearchRange.Find(What:="COST REQUEST EFF.Date", _
After:=LastCell, _
LookIn:=-4163, _
LookAt:=1, _
SearchOrder:=2, _
MatchCase:=MatchCase)
I think there is a hidden symbol ...either carriage return or line feed after "COST REQUEST" but when I put a vbCrLf in my search (ie. "Cost Request" & vbcrlf & "EFF.Date"