Thread: [Solved] HTML Class to Word Styles
View Single Post
 
Old 08-17-2023, 09:03 PM
Journeyman Journeyman is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2023
Posts: 15
Journeyman is on a distinguished road
Default

Okay, awesome. This is great followup information.

I am in fact writing from an Access webbrowser control to word. This functionality is fine - VBA.

It happens that after I tested how this works (thanks to your response) I discovered that I would have to assign the classes to each paragraph in the html before importing - which I didn't think about until after the fact.

My guess is that I will have to do some string manipulation to find and replace <p> tags with <P Class="msoBodyText">Ect...</p>". although I think there's a way to change attributes... but not yet sure where this rabbit hole will go.

In any case, this info you've given is very valuable, and much appreciated. Thanks tons!
Reply With Quote