Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ashish Sharma[_2_] Ashish Sharma[_2_] is offline
external usenet poster
 
Posts: 1
Default Word index at current cursor location

Hi
I need to get the word index where the cursor is currently positioned

for example
if i have 3-7 sentence in my document

this is line one
cursor is at XXX word
this is line three and cursor is at XXX in above line

how shd i get
cursor location is at sentenc 2 and word 4

Regards


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jean-Guy Marcil[_2_] Jean-Guy Marcil[_2_] is offline
external usenet poster
 
Posts: 373
Default Word index at current cursor location

"Ashish Sharma" wrote:

Hi
I need to get the word index where the cursor is currently positioned

for example
if i have 3-7 sentence in my document

this is line one
cursor is at XXX word
this is line three and cursor is at XXX in above line

how shd i get
cursor location is at sentenc 2 and word 4


Use the Word Count Toolbar.

Tools Word Count... Show Toolbar

Place your cursor where you need the count.
Do CTRL-SHIFT-Home key
Select "Words" in the Word Count toolbar dropdown.
Word will give you the number of words in the selection, since your
selection ends with your target word, the total is the index you seek. There
is no "Sentence" in that dropdown. If all your paragraphs are one sentence
long, you can use the paragraph count (Or line count?), but add one because
the current paragraph is not counted unless its ΒΆ is part of the selection.

If you need a "real" sentence count, you will need VBA for that (I write
"real" because a sentence to Word maybe different from your concept of a
sentence...)
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Word index at current cursor location

When you insert an index, it will be added at the insertion point. But note
that you must also mark entries to be included within the index. To mark
text, press Alt+Shift+X; this displays the Mark Index Entry dialog box. Then
insert an index, or update an existing index with F9. See
http://word.mvps.org/faqs/formatting/Createindex.htm.

--
Stefan Blom
Microsoft Word MVP


"Ashish Sharma" wrote in message
...
Hi
I need to get the word index where the cursor is currently positioned

for example
if i have 3-7 sentence in my document

this is line one
cursor is at XXX word
this is line three and cursor is at XXX in above line

how shd i get
cursor location is at sentenc 2 and word 4

Regards





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
MLBARR MLBARR is offline
external usenet poster
 
Posts: 1
Default Word index at current cursor location



"Ashish Sharma" wrote:

Hi
I need to get the word index where the cursor is currently positioned

for example
if i have 3-7 sentence in my document

this is line one
cursor is at XXX word
this is line three and cursor is at XXX in above line

how shd i get
cursor location is at sentenc 2 and word 4

Regards


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the current Table Index value in my VBA Macro? vrk1 Tables 4 February 28th 08 07:34 PM
cursor location in word document is blinking period not slash reststop Microsoft Word Help 1 January 11th 08 07:03 AM
how do i see the current page location in Word? [email protected] Microsoft Word Help 1 March 4th 06 05:56 PM
Word Document startup...........cursor location KCain Microsoft Word Help 2 October 29th 05 04:17 PM
Adding a text box at the current line location jpmoriarty Page Layout 1 June 9th 05 10:53 PM


All times are GMT +1. The time now is 02:46 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"