Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default locating carriage return within cells

compare against vbCrLf or maybe even vbLf.

You don't need to test each character if you just want to know if it
contains one, use Instr.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Roland" wrote in message
...
I need to locate cells that contain carriage returns. I have no trouble
writing the VBA code to loop each cell and test each character within each
cell. But I do not know what constant to use as I compare each character
to
identify carraiage returns. Can someone please tell me the constant that
represents a carriage return?
Many thanks.
--
Roland



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separating carriage return data into separate cells Richard Excel Discussion (Misc queries) 2 May 11th 09 09:12 PM
locating carriage return within cells Jason Lepack Excel Programming 0 January 18th 07 05:05 PM
How do merge two cells with a carriage return in between the two v Richard Excel Discussion (Misc queries) 5 April 19th 06 08:45 PM
Join 2 cells with carriage return in between MaxBrit Excel Discussion (Misc queries) 2 January 12th 06 10:18 AM
Carriage Return Tom Ogilvy Excel Programming 3 August 20th 03 07:22 PM


All times are GMT +1. The time now is 04:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"