View Single Post
 
Old 09-27-2019, 01:55 PM
vba vba is offline Windows 10 Office 2013
Novice
 
Join Date: Sep 2019
Posts: 3
vba is on a distinguished road
Default Is This Possible

Backstory:

I work for a learning management systems company. One of our clients use Microsoft Word to build and maintain their HTML training content.

Recently they have requested we implement a special "tagging" feature, which will substitute potions of content within their HTML documents depending on what department or position an employee is in.

We accomplish this by using a custom HTML element that wraps around an iframe and for the most part it works well. The problem is, when they go back to modify these documents in word they cannot see these custom elements and they are being unintentionally removed. If not unintentionally deleted, they do stay in the document after re-saving as web page filtered.



The Question:

Is it possible to create a VBA macro that can identify html elements in word? I haven't been able to find any information online. Ideally i'd like to create a macro that will apply styles to these elements (such as a red background, some height, and a border) when they first open the document then one to remove those once they are finished editing.

Thanks for reading!
Reply With Quote