PatternNut
Programmer
- Jul 29, 2007
- 5
As part of an MS Word add-in that I am constructing, I need to store several locations within a Word document. To date, I have done that using Word bookmarks. However, storing hundreds of bookmarks is intolerably slow. My understanding is that I could use an iTextRange to do this much faster. However, how do I set an itextrange equal to a range in the activedocument?
Microsoft provide much guidance on textobjectmodel, but not much support on integrating text object model into VBA. The best example I found was the superb post from strongm in this thread:
Is there a way to modify that approach so that it takes a Word range in the activedocument and stores that as an itextrange. Can I then call that iTextRange from another module in my add-in?
Thanks in advance,
PatternNut
Microsoft provide much guidance on textobjectmodel, but not much support on integrating text object model into VBA. The best example I found was the superb post from strongm in this thread:
Is there a way to modify that approach so that it takes a Word range in the activedocument and stores that as an itextrange. Can I then call that iTextRange from another module in my add-in?
Thanks in advance,
PatternNut