Solved

Word Macro to convert Simple HTML to formatting

Posted on 2016-09-13
4
58 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
  • 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 31

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

809 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