![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 49
|
Hi,
Wondering.. I have this statement in VBA, InStr(strTemp, ",") + 1.. what should I change in the "," part to find the end-of-line character?? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I guess the end of line character is "carriage return". In which case, substitute "," with:
Hope this is what you want. [ This Message was edited by: Mark O'Brien on 2002-03-21 19:43 ] [ This Message was edited by: Mark O'Brien on 2002-03-21 19:43 ] |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
If you're looking for the position of the last character, use Len(String)
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|