About table of contents

hi , i need code to extract data by table of contents
my requirrment is ,if i gave table of contents number from 3 to 6,
i should divide 3 as one html ,3.1 ,3.2…4,4.1,4.2,…upto 6.

so can i have code for it

3 posts were merged into an existing topic: Can we split word documnent by indexes,i.e like 2.1 one documnent and 2.2 as another