Word VBA: How do I check to see if my selection is a carriage return?

Trying to write code to see if my selection is a carriage return or not.  
Anyone have some suggestions?
RaphelleAsked:
Who is Participating?
 
PandaPantsConnect With a Mentor Commented:
Try something like this:

Dim boolSelectionIsCarriageReturn As Boolean
    If Selection.Text = vbCr Then
        boolSelectionIsCarriageReturn = True
    Else
        boolSelectionIsCarriageReturn = False
    End If

Open in new window

0
 
ragnarok89Commented:
Can you be a little more specific? What do you mean by selection?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.