Solved

Word Macro to convert Simple HTML to formatting

Posted on 2016-09-13
4
72 Views
Last Modified: 2016-09-26
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
Comment
Question by:Lev Seltzer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 250 total points
ID: 41796494
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
 
LVL 32

Accepted Solution

by:
Paul Sauvé earned 250 total points
ID: 41796574
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
 

Author Comment

by:Lev Seltzer
ID: 41796843
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
 

Author Closing Comment

by:Lev Seltzer
ID: 41815557
I hired a programmer to write the macro for me.
Thank you.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a feature provided by MS Word that lets you create an Table of Contents for your Word document automatically. To use this feature for other documents there are two steps involved,   1.  Prepare your document for a table of contents (he…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question