Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-27-2019, 01:55 PM
vba vba is offline Is This Possible Windows 10 Is This Possible Office 2013
Novice
Is This Possible
 
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
 



Other Forums: Access Forums

All times are GMT -7. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft