crossrreferenceproblem when document has bullet list

L

Lina

Hi
In my template I have made a solution for making crossreferences. I use the
GetCrossreferenceItem and Insertcrossreference on numbered item. It works the
way we want except for when the document has bulletd lists. The
getcrossreferenceitem seems to work as it should. When I set my list box.list
= .getcrossreferenceItems(wdreferencetype.wdreftypenumereditem) and shows
them in my listbox I can onley see the numered item, and that is what I want.
But then when I select a Item in the listbox and uses
Selection.insertcrossreference _
wdreferencetype.wdreftypenumbereditem, _
wdreferencekind.wdnumberrelativecontext, _
lstitems.listindex +1, true
I get a square symbol insted of the number that I wanted to refer to.
It seems like it in this case also counts the bulleted list and not onley
the numbered items. Has anyone had the same problem? And is ther any solution
for it?
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top