Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a cell linked to an Access database field. This field contains carrage
returns. I want to display only the data before the 1st carrage return. Is there a way to do this? Perhaps useing the LEN, LEFT and other functions? BTW this is in Excle and Access 2000. |
#2
![]() |
|||
|
|||
![]()
I don't know if that will work with a worksheet function because i don't
know how to search for for an enter. With a VBA function it's easier: Public Function OnlyB4Enter(wCell As String) As String Dim i, l As Integer Dim txtResult As String l = Len(wCell) i = InStr(1, wCell, vbCrLf, vbTextCompare) If i 0 Then txtResult = Left(wCell, (i - 1)) Else txtResult = wCell End If OnlyB4Enter = txtResult End Function "Erik Millerd" <Erik schreef in bericht ... I have a cell linked to an Access database field. This field contains carrage returns. I want to display only the data before the 1st carrage return. Is there a way to do this? Perhaps useing the LEN, LEFT and other functions? BTW this is in Excle and Access 2000. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
####### within a wrap text cell. | Excel Discussion (Misc queries) | |||
advanced filter - can't match a long text cell | Excel Discussion (Misc queries) | |||
Wrap text limits in Excel 2003 cell formatting | Excel Discussion (Misc queries) | |||
reference the result of a formula in a text formatted cell | Excel Discussion (Misc queries) | |||
Forcing text onto new line in cell | New Users to Excel |