
Searching for bullet lists; selecting bullet llists; converting bullet lists
If you respond to this, could you e-mail me directly at
I have a small VBA macro that converts a document to a
very plain subset of html: underlines are converted to the
html underline tags, two paragraph markers in a row are
converted to the html paragraph tag, etc.
Then this text is copied to the clipbard, where it can be
pasted into an html editor.
We don't need the full-blown "convert to html"
functionality, nor do we want it.
Here's my question:
I'd like to do something intelligent with bullet lists.
How, in VBA, can I search for them, iterate through them,
do anything with this? Ideally I'd be able to take a
bullet list like:
* Foo
* Bar
* Baz
and have it converted to
<ul>
<li> Foo
<li> Bar
<li> Baz
</ul>
Any thoughts on this?
Thanks!