Q about accessing powerpoint from word vba 
Author Message
 Q about accessing powerpoint from word vba

Ok, I have word installed
I have powerpoint installed

I try running a macro in word containing the line

Dim ppt As Powerpoint.Application

and I get the error message "Compile error: User-defined type not
defined"

I have tried this both on a machine running office 97 and on a machine
running office 2000

Is there anything I should make sure is installed beyond word and
powerpoint?
Is there something I should ensure I am including or referencing in
order to use a statement like the above?

Is there an FM I should consider R'ing that would be particularly
appropriate to this issue?

-Alice



Wed, 20 Jul 2005 05:45:23 GMT  
 Q about accessing powerpoint from word vba
Hi Alice,

Your missing a reference to the Powerpoint library.
In VBE choose menu: Tools | References

From the dialog, scroll down the listing until you catch up
with the Microsoft Powerpoint library, check this reference
and close the dialog.
The line shouldn't bug you anymore ...

Krgrds,
Perry



Quote:
> Ok, I have word installed
> I have powerpoint installed

> I try running a macro in word containing the line

> Dim ppt As Powerpoint.Application

> and I get the error message "Compile error: User-defined type not
> defined"

> I have tried this both on a machine running office 97 and on a machine
> running office 2000

> Is there anything I should make sure is installed beyond word and
> powerpoint?
> Is there something I should ensure I am including or referencing in
> order to use a statement like the above?

> Is there an FM I should consider R'ing that would be particularly
> appropriate to this issue?

> -Alice



Wed, 20 Jul 2005 06:28:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Opening embedded Word Doc in Powerpoint Slideshow using VBA

2. Access to a Excel object link in Powerpoint from VBA

3. VBA Code works in Powerpoint but not when originated in access

4. VB-Editor unreachable (Word, Excel, Powerpoint, Access)

5. Accessing Link in Word/Powerpoint 97 Pictures

6. Exec. Word VBA Function From Access using VBA

7. Office XP only: Spurious bookmark added to Word document Automating Powerpoint from Word

8. accessing/updating Access table with Word VBA

9. Access & Word VBA

10. Copying an OLE object from an Access table to Word via VBA

11. Running Word's VBA in Access

12. Creating Word Documents in Access VBA

 

 
Powered by phpBB® Forum Software