|
-
Jan 19th, 2007, 12:50 AM
#3
Junior Member
Re: Word: End of Document
The below coding is help you and it is very easy method
Dim cursor_pos As Long
Dim doc_end As Long
cursor_pos = Selection.Start
doc_end = ActiveDocument.Range.End
doc_end = doc_end - 1
If cursor_pos = doc_end Then
MsgBox "Cursor position is at end of the document"
End If
Thanks,
nit22
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|