Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2020, 07:53 AM
asad.ermo asad.ermo is offline HTML Copy Windows 7 64bit HTML Copy Office 2007
Novice
HTML Copy
 
Join Date: Sep 2017
Posts: 5
asad.ermo is on a distinguished road
Default HTML Copy

I have more than 60 html files in a folder, these files contains images, objects etc , I want to copy these files into word 2007 same maintaining format and images into separate word file through VBA

Last edited by asad.ermo; 08-10-2020 at 05:15 PM.
Reply With Quote
  #2  
Old 08-10-2020, 05:23 PM
Guessed's Avatar
Guessed Guessed is offline HTML Copy Windows 10 HTML Copy Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

How about you do this without VBA as it is far easier?

Go to Insert > Object > Text from File. This will open a file dialog and you can select all the HTML files and click OK to import them all in one step.

You can record this to see what the macro might look like and build up your code from that base. You will find plenty of batch macros on this forum.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Copy When I copy&paste a second copy appears that can't be edited makeo22 Word 3 04-26-2017 07:09 PM
HTML Copy How to copy and paste text from inside an (html) form in word tfn Word 1 01-17-2017 01:49 PM
Making an HTML Textbox Clickable (+ copy, paste, etc.) Jonas.t1989 Outlook 0 08-25-2015 07:11 AM
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
copy a file which does not have copy option jkind Word 0 01-17-2010 09:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft