Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open Word from Excel or Excel from Word

Status
Not open for further replies.

radubalmus

Programmer
Apr 26, 2007
49
EU
I am kind of a beginner in VBA..
I want to open an Word file, copy something from it and then open an Excel file an paste it there
So my problem is that i don't know how to define Excel as an object in Word VBA or define Word As an object in Excel VBA.

Would greatly apreciate help
 
Have a look at the CreateObject or GetObject functions.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top