#1
|
|||
|
|||
Trying to copy text from HTML file into Word using VBA
I have a script that creates an HTML page on the desktop containing just text with break tags and some bolded text only. It does not contain any tables. What I'd like to do is copy the text that is in the HTML page using a .docm file, that contains fields for date and baseline, with a VBA script. I've been searching a bunch of forums, but they all have text in tables. How do I take the simple text with bold from the HTML page on the desktop and paste it into the docm file and save it with a specific name?
Chris |
#2
|
||||
|
||||
I would expect something like this to work for the html insert
Code:
Selection.InsertFile FileName:="C:\Test.htm", Range:="", ConfirmConversions:=False, Link:=False, Attachment:=False
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
saving html as doc |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to copy and paste text from inside an (html) form in word | tfn | Word | 1 | 01-17-2017 01:49 PM |
How to create e-mail from text/HTML file | jimcant | Outlook | 0 | 07-18-2013 05:50 AM |
Expand/Collapse in Html Word File | kitkat0910 | Word | 0 | 10-10-2012 03:42 AM |
Import HTML into Word .doc file? | Clueless in Seattle | Word | 1 | 07-31-2012 12:12 PM |
Help! Find text in doc file & copy to another file | northstarman | Word | 1 | 11-05-2010 08:15 AM |