Hi evereyone,
I try to add a macro process into my Word2007 to add a string to the Index.
I select "abcd" (a string in my word sheet) select "View" from the ribbon and "macroes" from the "view" ribbon. I select "record a macro" and give the new macro a name and OK. Starting to record the macro i select "reference" from the ribbon and "Add index" . At the "Value" text box "abcd" is already populated so i click OK and go back to "view", "Macroes" and select "Stop recording". A new value ("abcd") is added to the "Index" list.
Now i selct "efgh" from my "Word" sheet and press the macro button at the "Quick Access Toolbar" but rather then getting a new "efgh" value, i get "abcd" again.
How can i change a string with variable ?
Thanks.
I try to add a macro process into my Word2007 to add a string to the Index.
I select "abcd" (a string in my word sheet) select "View" from the ribbon and "macroes" from the "view" ribbon. I select "record a macro" and give the new macro a name and OK. Starting to record the macro i select "reference" from the ribbon and "Add index" . At the "Value" text box "abcd" is already populated so i click OK and go back to "view", "Macroes" and select "Stop recording". A new value ("abcd") is added to the "Index" list.
Now i selct "efgh" from my "Word" sheet and press the macro button at the "Quick Access Toolbar" but rather then getting a new "efgh" value, i get "abcd" again.
How can i change a string with variable ?
Thanks.