View Single Post
 
Old 06-19-2015, 01:19 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

What exactly are you trying to check and why?
What do you mean by a 'line'. Lines in Word are volatile entities created by text flow. Do you perhaps mean 'paragraph'?
There is no reason to 'move the cursor, to establish what the first character of a paragraph is, but if you insist, the following will work for the document body.

Code:
Dim oPara As Paragraph
For Each oPara In ActiveDocument.Paragraphs
    oPara.Range.Characters(1).Select
    MsgBox oPara.Range.Characters(1)
Next oPara
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote