Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-27-2023, 04:59 PM
Journeyman Journeyman is offline HTML To Word Styles Windows 10 HTML To Word Styles Office 2019
Novice
HTML To Word Styles
 
Join Date: Feb 2023
Posts: 15
Journeyman is on a distinguished road
Default HTML To Word Styles

Hi All,

I'm xfering HTML to Word. The xterfer works fine. Except

I was provided advice to to have html style map to word:
https://www.msofficeforums.com/word-...rd-styles.html

That advice had me include the class inside the HTML tag:
Code:
<p Class=MsoBodyText>Body Text Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoList>List Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoListNumber>List Number Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoHeading1>Heading 1 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoTitle>Heading 2 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
The problem:
Using these style classes inside the P tag works fine. However, on my html form, I have Bullet points.



<Ul>
<Li> List 1</Li>
<Li> List 2</Li>
</Ul>
... etc

Where <p Class=MsoList> works to identify the correct word style <Li Class=MsoList> does not.

This means that a bulleted or numbered list in the HTMl document, with transpose to word as a normal class - no matter how I define the List class.

I've tried <P><Li>.... etc, but that doesn't work. I've tried <Li><P>... etc. but that doesn't work either.

Is there a solution to this issue?

I am simply wanteding my list styles to appears as list styles in word, and use the correct formatting.

Cheers
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 12:28 AM.


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