• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 116
  • Last Modified:

Word Macro to convert Simple HTML to formatting

I have a document that was imported from HTML, so it has the HTML tags, such as <em>, <I>, <p>, <b>, &nbsp;, etc.
I want to convert all these tags to the appropriate formatting.
Is there a way to do that with a macro? Does one already exist?
Thank you.
0
Lev Seltzer
Asked:
Lev Seltzer
  • 2
2 Solutions
 
GrahamSkanRetiredCommented:
Word can open HTML files, thought the presentation might not be the same as a browser, so the usual way to convert would be to open the file and to save it as a .docx file.

If this doesn't work satisfactorily, please post a sample file here.
0
 
Paul SauvéRetiredCommented:
GrahamSkan is correct...

In my experience, after opening the file in Word, I do is change the view from Web Layout to Print Layout

I find that I have had to remove parts of the html file (superfluous tags, etc) and do a bit of editing in order to get better results.
0
 
Lev SeltzerAuthor Commented:
See the attached for an example.
The HTML starts in the data file and gets merged into a standard word document.
I want to remove the HTML tags.
example.docx
0
 
Lev SeltzerAuthor Commented:
I hired a programmer to write the macro for me.
Thank you.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now