Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent help needed please

Set objword = New Word.Application
Set objDoc = objword.Documents.Open(DocumentPath +
"\ECB_Document.doc")
objword.Visible = True
objword.Activate
objword.Run ("FillinDocument")

objDoc.Close _
SaveChanges:=Word.WdSaveOptions.wdSaveChanges
objword.Quit
Set objword = Nothing


I am trying to call a word macro from excel(office 2003) it keeps on
giving me errors.. can any one help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Urgent help needed please

On Mar 22, 10:31*pm, sriram wrote:
*Set objword = New Word.Application
* *Set objDoc = objword.Documents.Open(DocumentPath +
"\ECB_Document.doc")
* objword.Visible = True
* objword.Activate
* objword.Run ("FillinDocument")

* objDoc.Close _
* * * * * *SaveChanges:=Word.WdSaveOptions.wdSaveChanges
* objword.Quit
* Set objword = Nothing

I am trying to call a word macro from excel(office 2003) it keeps on
giving me errors.. can any one help


I think you have to state the workwook name, module name and macro
name
for example objwor.Run "Normal.NewMacros.FillinDocument"
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
Urgent help needed please Bob Newman Excel Discussion (Misc queries) 5 January 15th 09 03:24 AM
URGENT HELP NEEDED ah Excel Discussion (Misc queries) 4 August 22nd 08 08:05 AM
Urgent help needed Excel Helps Excel Worksheet Functions 13 January 21st 08 03:50 PM
Urgent Help needed Brento Excel Discussion (Misc queries) 0 February 9th 06 09:10 PM
URGENT, help needed. John Keith[_2_] Excel Programming 2 February 8th 06 10:22 PM


All times are GMT +1. The time now is 09:29 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"