|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Parse bookmarks in a word documentHi,
I am trying to parse a word document to get a list of all the bookmarks that are setup within the document I need to be able to parse the bookmarks though without knowing the bookmark name Thanks in advance Mike Fellows I don't do much programming with Word so this is more of a guess than a
fact. But if bookmarks is an object you might be able to do something like this: <pseudocode> Dim bm as Word.BookMark For each bm in ActiveDocument ' do whatever Next </pseudocode> That should get you started. Thanks, Seth Rowe Mike Fellows wrote: Show quoteHide quote > Hi, > > I am trying to parse a word document to get a list of all the bookmarks that > are setup within the document > > I need to be able to parse the bookmarks though without knowing the bookmark > name > > Thanks in advance > > Mike Fellows Cheers for that
wasnt aware of word.bookmark cheers Mike Show quoteHide quote "rowe_newsgroups" <rowe_em***@yahoo.com> wrote in message news:1159969882.424985.266320@b28g2000cwb.googlegroups.com... >I don't do much programming with Word so this is more of a guess than a > fact. But if bookmarks is an object you might be able to do something > like this: > > <pseudocode> > > Dim bm as Word.BookMark > > For each bm in ActiveDocument > ' do whatever > Next > > </pseudocode> > > That should get you started. > > Thanks, > > Seth Rowe > > Mike Fellows wrote: >> Hi, >> >> I am trying to parse a word document to get a list of all the bookmarks >> that >> are setup within the document >> >> I need to be able to parse the bookmarks though without knowing the >> bookmark >> name >> >> Thanks in advance >> >> Mike Fellows >
You're good if you can answer this one.....
.NET 2 recommended books? Sending email with attachments Problem with access database, and VB .NET Office application object problem Datetimepicker - just getting the data part ComboBox.Items.Clear() Extracting icon from file: most efficient method? Changing Printer's default paper How to convert code snipped from VB6 to Visual Studio 2005/VB (VB7?) |
|||||||||||||||||||||||