Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find 'n' replace in Word: insert text before every occurrence of a style
#1
I've got a document with two character styles; everything is either one style or the other.

I want to take this Word document and convert the information into XML, for storage or parsing.

So, I want to surround every chunk of text that has the style questionText with and tags.

Then, surround every chunk of text that has the answerText style with and .

I can do RegEx, and am playing with Word's Find/Replace wildcards feature, but am just not seeing how to pull this off.

VBA would be good, but I'm on the Mac here. :-)
Reply
#2
Load Word 2003 on your windows partition and I will walk you through it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)