Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA, won't recognize "Word.Application" object

I give... I NEED to control word from excel or vice versa.

I know about the line
"Dim wrdApp as Word.Application"
Though everytime I try this in excel I can't get any response, it give
me an error for that line. It's as if the "Word" object doesn't exist
I've looked everywhere!! Is there a library I can add t
excel's vba? What's the missing link?!?! It's an easy fix isn't i
:)

I will buy beers for whoever can help me out here!! :)

Thanks Guy

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Excel VBA, won't recognize "Word.Application" object

You need to set a library reference to Word, in the VBA editor goto
Tools-References and chekc the box for Microsoft Word 10.0 Object Library.
That should do it.

The version may be different depending on your copy of Excel (10 refers to
Excel 2002)

Cheers
Nigel

"Skyron " wrote in message
...
I give... I NEED to control word from excel or vice versa.

I know about the line
"Dim wrdApp as Word.Application"
Though everytime I try this in excel I can't get any response, it gives
me an error for that line. It's as if the "Word" object doesn't exist.
I've looked everywhere!! Is there a library I can add to
excel's vba? What's the missing link?!?! It's an easy fix isn't it
:)

I will buy beers for whoever can help me out here!! :)

Thanks Guys


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA, won't recognize "Word.Application" object

Hello Skyron

I believe you need to add the word library.
From the VB Editor menu select Tools References and check Microsof
Word 9.0 Object Library.

Ciao

Ro

--
Message posted from http://www.ExcelForum.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
why do i "sometimes" need to "edit chart object" before "source da Flirty and Blonde Charts and Charting in Excel 1 February 2nd 10 02:07 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Browse a multi-pages "microsoft word document" object in Excel 200 dapanpan Excel Discussion (Misc queries) 0 March 22nd 08 06:20 AM
What does "Application-defined or object-defined error" mean? Shatin Excel Programming 4 February 3rd 04 10:15 AM
"Application-defined or object-defined error" while printing excel report chemburkar Excel Programming 0 February 2nd 04 08:33 PM


All times are GMT +1. The time now is 11:15 PM.

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"