?
Solved

Link one application to another application

Posted on 1998-11-24
7
Medium Priority
?
131 Views
Last Modified: 2010-05-03
I can't seem to find how to run a function that collects information from one application (Excel) and pastes it into another application (Word) and then repeats the process until all the data has been transferred from Excel to Word.  I need something more than just to link or embed the information since the information in excel will be constantly changed with new files that need copied to Word.  
Any ideas???
Any information you could provide me would be GREATLY appreciated.
0
Comment
Question by:dderocco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 6

Expert Comment

by:VBGuru
ID: 1446659
you can write an application which automates both word and excel. First use copy fuction for excel and then use paste in the word document. if you are interested with the ideal let me know.
0
 

Author Comment

by:dderocco
ID: 1446660
VBGuru...
definetly interested.  Can you tell me more??

drew
0
 
LVL 4

Accepted Solution

by:
idcanada earned 200 total points
ID: 1446661

Reference the Word 8 or 7 object in your project.
Now you should be able to see the available options.
Such as
Dim objWord as new (Select the Word.Basic Object)
objWord.(List all the options)


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:VBGuru
ID: 1446662
I will get you the sample code to work. give me some time
0
 
LVL 6

Expert Comment

by:VBGuru
ID: 1446663
You can use macro editor if you don't know which object to use to access the functionality.
First create a macro(record it automatically) in excel the work of selecting and copying the content. you will get a macro for that.
Once again create a macro in word to paste the content and save it.
Now you got almost full source code to use OLE automation. modify the source code to suite VB. And that will work fine.
If you face any problem in between let me know.
0
 

Author Comment

by:dderocco
ID: 1446664
VBguru...
Can you provide more information?  I'm having trouble writing the code to start and execute the macros for word and excel.

thanx
0
 
LVL 6

Expert Comment

by:VBGuru
ID: 1446665
Open the word application and in the tools menu oiptios you have macro option.Try it out writing a macro.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question