Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel Experts
In several headings, I have broken the heading over two lines by using Alt+Enter to insert a line break between two words. When I try to search for this text, the search fails. In my VBA code, is there any way to successfully find this type of text. Thanks, Alan -- achidsey |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this. i entered test <alt<entercolumn in the B1, and i believe it was
norman's code i adapted Sub tr() With Columns(2) Set fndRange = .Find(what:="test" & Chr(10) & "column", LookIn:=xlValues) End With If fndRange Is Nothing Then MsgBox "Not found" Else fndRange.Interior.ColorIndex = 35 End If End Sub -- Gary "achidsey" (notmorespam) wrote in message ... Excel Experts In several headings, I have broken the heading over two lines by using Alt+Enter to insert a line break between two words. When I try to search for this text, the search fails. In my VBA code, is there any way to successfully find this type of text. Thanks, Alan -- achidsey |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Gary, Thanks. This will be very helpful. Alan -- achidsey "Gary Keramidas" wrote: try this. i entered test <alt<entercolumn in the B1, and i believe it was norman's code i adapted Sub tr() With Columns(2) Set fndRange = .Find(what:="test" & Chr(10) & "column", LookIn:=xlValues) End With If fndRange Is Nothing Then MsgBox "Not found" Else fndRange.Interior.ColorIndex = 35 End If End Sub -- Gary "achidsey" (notmorespam) wrote in message ... Excel Experts In several headings, I have broken the heading over two lines by using Alt+Enter to insert a line break between two words. When I try to search for this text, the search fails. In my VBA code, is there any way to successfully find this type of text. Thanks, Alan -- achidsey |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a line break writing text within a cell? | Excel Discussion (Misc queries) | |||
Automatic line break in cells | Excel Discussion (Misc queries) | |||
Force line break based on text | Excel Discussion (Misc queries) | |||
concantenatring 2 cells with with a line break | Excel Discussion (Misc queries) | |||
How to do a line break in a text formula | Excel Programming |