Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Use ADO to open a Word file from Excel?

I need to create an Excel macro that opens any Word file, does a select all (Ctrl-A), copies all the selected text to the clipboard (Ctrl-C), and then closes Word. I think ADO functions can do this quickly and in a non-visible manner. Anyone know how to do this?

-Robert
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,182
Default Use ADO to open a Word file from Excel?

I need to create an Excel macro that opens any Word file, does a select all
(Ctrl-A), copies all the selected text to the clipboard (Ctrl-C), and then
closes Word. I think ADO functions can do this quickly and in a non-visible
manner. Anyone know how to do this?

-Robert


You could easily automate an 'instance' of Word and have it open the document
for you, all behind the scene since your Word instance will not be visible
until you make it so if giving your user interactive access to it. I don't use
Word much so you'll have to google for help automating it, but the same VBA
that works in Word will also work with your object ref to your Word instance in
Excel.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Word file with Excel VBA KP[_4_] Excel Programming 2 September 26th 11 07:24 AM
Open new Word file via Excel Lupe Excel Programming 3 September 5th 07 06:26 AM
Using an Excel macro to open a Word File lhyer Excel Programming 4 July 18th 05 09:28 PM
Open One Word File from Excel Stratuser Excel Programming 6 January 27th 04 06:37 PM
Graph Excel Selection, Open Word File, Embed Graph Into Word Steve Excel Programming 0 November 17th 03 05:35 PM


All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"