Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-24-2021, 03:45 PM
Guessed's Avatar
Guessed Guessed is offline Trying to copy text from HTML file into Word using VBA Windows 10 Trying to copy text from HTML file into Word using VBA Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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 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
For the Save line, record a macro while you do a SaveAs and see what the result is.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
saving html as doc

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to copy text from HTML file into Word using VBA 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
Trying to copy text from HTML file into Word using VBA 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

Other Forums: Access Forums

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