find whole cell when it has Alt Enter

bobaol

Board Regular
Joined
Jun 3, 2002
Messages
225
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
Hello, I'm trying to use the a cell when it has Alt Enter in it. right now, it is two lines in one cell. like this:
GEOGRAPHIC_VINTAGE
_YEAR

I do not want to change the cell, nor do I want to eliminate the Alt Enter. I want to find the whole cell when I press Control F. I tried using GEOGRAPHIC_VINTAGE char(10) _YEAR, but that did not work. any help is appreciated. Thanks in advance.
 

Attachments

  • Find_Alt_Enter.PNG
    Find_Alt_Enter.PNG
    16.3 KB · Views: 5

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Instead of char(10) use Ctrl J
 
Upvote 0
Hello Fluff, thanks! control J find the line break itself, but i want to find the words in the first line, the line beak, and the words in the second line. finding only the line break doesn't work for this situation. thanks!
 
Upvote 0
Just type the 1st set of words, then Ctrl J then the rest.
 
Upvote 0
Solution
thank you Fluff! worked perfectly as you described. Here is the code when I recorded, in case anyone else has this same issue. Thanks again!
VBA Code:
Sub Macro1()
    Cells.Find(What:="GEOGRAPHIC_VINTAGE" & Chr(10) & "_YEAR", After:=ActiveCell, LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True, SearchFormat:=False).Activate
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top