Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-31-2023, 10:13 PM
Guessed's Avatar
Guessed Guessed is offline HTML To Word Styles Windows 10 HTML To Word Styles Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I'm not very elegant so I would be running a String Replace function on the entire html string
Code:
Find: <LI Class=MsoListNumber>
Replace with: <LI Class=MsoListNumber><P Class=MsoListNumber>

and 
Find: </LI>
Replace with: </p></LI>

Or if you didn't need the nested tags you could replace <LI and </LI> with <P and </P> respectively
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML To Word Styles HTML Class to Word Styles Journeyman Word VBA 4 08-17-2023 09:03 PM
HTML To Word Styles Displaying in the Styles Pane Only the Styles You Actually Use -- Which Was a Snap in Word 2003 RobertB Word 4 08-09-2022 09:29 AM
Locking styles in Word using VBA to restrict new styles cadillac1206 Word VBA 1 04-21-2020 01:08 AM
HTML To Word Styles Self-created styles in Word to appear when converting to HTML anapat Word 2 05-11-2013 09:40 PM
Can you actually write HTML and CSS in a word document and send it as an html page jackaroo Word 0 07-12-2010 07:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 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