Post-process the result of the INDEXDear friends,<br/> <br/> I had an issue with word indexing . I had posted my question initially in &quot;word general questions&quot; which is below for your reference<br/> <br/> <br/> &quot;&gt; I have a question is indexing.. If i am doing indexing for integer/numeric<br/> &gt; starting values like &quot;1-North street&quot; its displaying in index under the<br/> &gt; heading &quot;1&quot;.<br/> &gt;<br/> &gt; Is there any option to display all the numeric starting values under a<br/> &gt; common heading(say numerics)????&quot;<br/> <br/> <br/> and the reply i have got from few is<br/> <br/> &quot;I think there isn't. You'd have to post-process the result of the INDEX<br/> field each time you update the index.<br/> <br/> If you need this functionality a lot, a macro doing the post-processing<br/> (basically deleting all the 1/2/3/... headings in the TOC and inserting<br/> one &quot;Numerics&quot; heading) is certainly feasible.&quot;<br/> <br/> I am not exactly able to catch up the point here. Do anybody got worked out samples for this issue?<br/> <br/> Thanks in advance.© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Jul 2009 02:38:15 Z84be2043-0fe0-4f22-8cfb-b90f6a63fb2fhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#84be2043-0fe0-4f22-8cfb-b90f6a63fb2fhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#84be2043-0fe0-4f22-8cfb-b90f6a63fb2fKarthik.SKhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karthik.SKPost-process the result of the INDEXDear friends,<br/> <br/> I had an issue with word indexing . I had posted my question initially in &quot;word general questions&quot; which is below for your reference<br/> <br/> <br/> &quot;&gt; I have a question is indexing.. If i am doing indexing for integer/numeric<br/> &gt; starting values like &quot;1-North street&quot; its displaying in index under the<br/> &gt; heading &quot;1&quot;.<br/> &gt;<br/> &gt; Is there any option to display all the numeric starting values under a<br/> &gt; common heading(say numerics)????&quot;<br/> <br/> <br/> and the reply i have got from few is<br/> <br/> &quot;I think there isn't. You'd have to post-process the result of the INDEX<br/> field each time you update the index.<br/> <br/> If you need this functionality a lot, a macro doing the post-processing<br/> (basically deleting all the 1/2/3/... headings in the TOC and inserting<br/> one &quot;Numerics&quot; heading) is certainly feasible.&quot;<br/> <br/> I am not exactly able to catch up the point here. Do anybody got worked out samples for this issue?<br/> <br/> Thanks in advance.Wed, 01 Jul 2009 16:21:55 Z2009-07-01T16:21:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#97ebc728-cde1-4a23-ab7b-f40c4fd5157fhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#97ebc728-cde1-4a23-ab7b-f40c4fd5157fCindy Meisterhttp://social.msdn.microsoft.com/Profile/en-US/?user=Cindy%20MeisterPost-process the result of the INDEXHi Karthik<br/><br/>I don't have any code for this - I've never tried this particular exercise...<br/><br/>What the person answering means is that you need to &quot;walk&quot; the Index entries (TOC was probably just a lapse of concentration) - probably paragraphs, but it will depend on the type of Index. Where you find a number as the first character of an entry, your code would delete that and any other extraneous characters (dashes, spaces, etc). Do that until the numbers stop. <br/><br/>At the same time, also delete the &quot;section heading&quot; for each number (1, 2, 3, etc).<br/><br/>And, of course, at the top insert the &quot;section heading&quot; you want to see.<br/><br/>As the person notes, this code would have to be run again everytime the Index is updated. This is because updating a field will erase any editing done to the field text.<hr class="sig">Cindy Meister, VSTO/Word MVPFri, 03 Jul 2009 10:56:27 Z2009-07-03T10:56:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#7261ff2f-c662-4368-ac4c-e1d5d292456ahttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#7261ff2f-c662-4368-ac4c-e1d5d292456aKarthik.SKhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karthik.SKPost-process the result of the INDEXCindy,<br/> <br/> <br/> Here i don't need to modify the entries. let the entries be starting  with numerics or extraneous characters, but i need to change all those numeric entries to be displayed under a common heading.<br/> <br/> <br/> Thx in advance<br/> Karthik<br/> <br/> <br/>Fri, 03 Jul 2009 12:32:44 Z2009-07-03T12:32:44Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#0e63838a-ec05-40a0-9c62-9b1606a8d57ehttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#0e63838a-ec05-40a0-9c62-9b1606a8d57eCindy Meisterhttp://social.msdn.microsoft.com/Profile/en-US/?user=Cindy%20MeisterPost-process the result of the INDEXHi Karthik<br/><br/>In that case, all you need to do is delete those headings and insert your own. The field result can be manipulated just like any other text in the document. What you do just isn't &quot;permanent&quot; (will be lost when the field updates).<hr class="sig">Cindy Meister, VSTO/Word MVPSat, 04 Jul 2009 10:33:14 Z2009-07-04T10:33:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#99126d06-c5f4-493b-a46e-b96636099c81http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#99126d06-c5f4-493b-a46e-b96636099c81Karthik.SKhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karthik.SKPost-process the result of the INDEXHi Cindy,<br/> <br/> Is there any macro or sample available to get the headings of the index? <br/> <br/> -karthikSun, 05 Jul 2009 05:55:58 Z2009-07-05T05:55:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#673690c5-4598-4a97-9ca6-b9a8c0214015http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/84be2043-0fe0-4f22-8cfb-b90f6a63fb2f#673690c5-4598-4a97-9ca6-b9a8c0214015Cindy Meisterhttp://social.msdn.microsoft.com/Profile/en-US/?user=Cindy%20MeisterPost-process the result of the INDEX<p>I know of none. In any case, it's going to depend on exactly how the Index is generated (the particular properties used).</p><hr class="sig">Cindy Meister, VSTO/Word MVPMon, 06 Jul 2009 08:32:44 Z2009-07-06T08:32:44Z