![]() |
#1
|
|||
|
|||
![]()
Hi all,
Not so sure this belongs here, but some cluey person might have an answer. I have an HTML file that is being imported into MS Word. e.g. Code:
Set oDoc = oApp.documents.add oDoc.Range.InsertFile = "C:MyPath\MyFile.htm" On that import, any text recognised as a Header (e.g. 'H1') is automatically applied to the Heading 1 style. Awesome... except... ...any other text is converted into the Normal style. So I tried to be clever and set the class of the HTML tag. e.g. Code:
<p style='Font-Family:Tahoma,Geneva, sans-serif' Class='Body Text">My Paragraph</p> So... how might I address this problem? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
RobertB | Word | 4 | 08-09-2022 09:29 AM |
![]() |
ilcaa72 | Word VBA | 3 | 05-01-2017 07:13 PM |
![]() |
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 |