[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 110
  • 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
 
GrahamSkanCommented:
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éCommented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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