need help with Word Objects

E

Edward

Hi everybody,
Im working on a Power Point project and I want to write a macro in power
point to open a word document in a certain directory and name copy its
content which is at most two pages ( it's just text and possibily a table but
no other shape or footer/header) and then past it in power point. I already
wrote the code how to find documents names and its directory and file names
now I just need to know how to open the file and copy its contenet

dim Appwd as Object
set Appwd=CreateObject("word.application")
Appwd.documents.open "C:\......"
Im stuck here

Any suggestions?

thanks a lot
 
J

Jonathan West

Edward said:
Hi everybody,
Im working on a Power Point project and I want to write a macro in power
point to open a word document in a certain directory and name copy its
content which is at most two pages ( it's just text and possibily a table
but
no other shape or footer/header) and then past it in power point. I
already
wrote the code how to find documents names and its directory and file
names
now I just need to know how to open the file and copy its contenet

dim Appwd as Object
set Appwd=CreateObject("word.application")
Appwd.documents.open "C:\......"
Im stuck here

Any suggestions?
Take a look at this article

Control Word from Excel
http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm


Don't worry about the mention of Excel, the principle is the same for
controlling Word with VBA from any Office app.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top