Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-17-2023, 08:06 PM
Guessed's Avatar
Guessed Guessed is offline HTML Class to Word Styles Windows 10 HTML Class 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

Note that you can also make use of style aliases to 'force' a tagged paragraph into a specific style when you don't know its built-in MsoXXX title

For instance, if I wanted to make any of these map to a specific style in Word then I could firstly add them as stylename aliases in Word and then import the html.
In the case of the Heading 1 style in Word, change the stylename in your Word doc to "Heading 1,random,fubar" which means you can then import the following html lines which all become Heading 1 in the document.
Code:
<p Class=random>Heading 1 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=fubar>Heading 1 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<h1>Heading 1 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</h1>
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Class 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
HTML Class to Word Styles Turn off an Initialized Class ilcaa72 Word VBA 3 05-01-2017 07:13 PM
HTML Class to Word Styles Self-created styles in Word to appear when converting to HTML anapat Word 2 05-11-2013 09:40 PM
Evernote--Class Notes markg2 Outlook 0 05-10-2012 05:50 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:55 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