Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-13-2022, 01:34 AM
Guessed's Avatar
Guessed Guessed is offline Open word document and copy Windows 10 Open word document and copy 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

You should name the document as a variable as you open it.
Code:
Dim oDoc as Object
Set oDoc = objWord.Documents.Open(strPath)
Then you can copy the document's range to the clipboard
Code:
oDoc.Range.Copy
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia

Last edited by Charles Kenyon; 09-13-2022 at 05:00 AM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Make Userform Copy From One Word Document to Another Marrick13 Word VBA 0 03-19-2018 10:45 AM
look for a specific word in document and copy it to the filename sylvio Word VBA 4 03-09-2017 05:53 PM
Adding tables to Created word document whilst other word document open Help rpb925 Word VBA 18 03-30-2016 04:45 PM
Word Document won't open neusys Office 0 09-16-2013 12:05 AM
Open word document and copy Copy from one word document to another no identical gmurphy Word 3 09-07-2011 04:28 AM

Other Forums: Access Forums

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