Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Office Automation

Hi !! :)

I need some information on controlling MS Word with a Macro in
MS Excel and vice-versa.

Could someone give me detailed instructions, please !! :)

Thanks in advance !


Vijay
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Office Automation

On May 27, 10:36*am, Vijay Chary
wrote:
Hi !! :)

* * * * * * I need some information on controlling MS Word with a Macro in
MS Excel and vice-versa.

* * * * * Could someone give me detailed instructions, please !! :)

* * * * * *Thanks in advance !

* * * * * * * * * *Vijay


You don't say what you want either to do to the other, but

Dim WrdHold As String
Dim appwd As Object
On Error GoTo notloaded
Set appwd = GetObject(, "Word.Application")
notloaded:
If Err.Number = 429 Then
Set appwd = CreateObject("Word.Application")
End If
appwd.Visible = True
On Error GoTo 0


would give you a Word Object - you can then program this as with any
other object - for instance, to add a new document based on a
template

appwd.documents.Add Template:="Q:\APPS\StevApps\SystTemp\emulation
\Change of address.dot"

(this comes from a real word example). In the same way, you can
create an excel object and interface that.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Office Automation

On Tue, 27 May 2008 02:36:00 -0700, Vijay Chary
wrote:

Hi !! :)

I need some information on controlling MS Word with a Macro in
MS Excel and vice-versa.

http://www.dailydoseofexcel.com/arch...tomating-word/
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
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
How to start Office application in Automation mode via Office itself? [email protected] Excel Programming 0 January 23rd 08 07:21 AM
Office automation problem vba_nerd Excel Programming 0 April 6th 06 11:31 AM
MS Office VBA Automation Specialist salooha Excel Discussion (Misc queries) 0 August 15th 05 07:57 PM
asp.net Office Automation - in or out of process David Laub Excel Programming 4 April 27th 04 10:17 PM
Office automation application which will work with any version of office C#.NET Silly Programmer Excel Programming 1 February 21st 04 10:54 AM


All times are GMT +1. The time now is 12:41 AM.

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"