how to extract data from bulletins

J

James Wagman

I have a document which is roughly in this format

Title 1 (underlined)
bulled item
several dashed items

I need to extract these items and put them into Excel. I'm a total Word
VBA newbie, but I know Excel VBA. Where can I start?

Thanks.
 
H

Helmut Weber

Hi James,
there are numerous ways and lots of variables,
just in case your bullet in from the symbol font
and character 183 then this may serve as a start:
Dim oPrg As Paragraph
For Each oPrg In ActiveDocument.Paragraphs
If oPrg.Range.ListParagraphs.Count Then
If AscW(oPrg.Range.ListFormat.ListString) + 4096 = 183 Then
MsgBox oPrg.Range.Text
End If
End If
Next
 

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