S
Silvio
Hello, I need help in writing a macro that will
automatically "Mark Entry" - for indexing purpose - for
all the words in my document. I was able to make a macro
years ago with MSWord 6 but I am lost using VB in
Wond2003.
I know should be something like :
Selection.MoveRight Unit:=wdWord, Count:=1,
Extend:=wdExtend
'select whatever word is on the right side of the cursor.
ActiveDocument.Indexes.MarkEntry Range:=Selection.Range,
Entry:="Test", _
EntryAutoText:="Test",
'the name of the Mark Entry would be the same of the word
selected, so, the word "Test" in the above example would
actually be a variable (e.g. i = current selected word).
So, what i am missing here is to declare a variable that
would work in this routine and create a loop that would
run to the end of the document "EOF"
Any help to finalize code is apreciate.
Thank you,
Silvio
Help!!!!!!
automatically "Mark Entry" - for indexing purpose - for
all the words in my document. I was able to make a macro
years ago with MSWord 6 but I am lost using VB in
Wond2003.
I know should be something like :
Selection.MoveRight Unit:=wdWord, Count:=1,
Extend:=wdExtend
'select whatever word is on the right side of the cursor.
ActiveDocument.Indexes.MarkEntry Range:=Selection.Range,
Entry:="Test", _
EntryAutoText:="Test",
'the name of the Mark Entry would be the same of the word
selected, so, the word "Test" in the above example would
actually be a variable (e.g. i = current selected word).
So, what i am missing here is to declare a variable that
would work in this routine and create a loop that would
run to the end of the document "EOF"
Any help to finalize code is apreciate.
Thank you,
Silvio
Help!!!!!!