Compile Error Custom Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was using Powerpoint XP and had a custom macro created which 'transformed' the PPT file to a Word document (with some customization included in the transfer) Now I am using PPT 2003 (Office 2003) and when I try to use the macro I get an error message dialog box "Compile Error:User Defined Type Not Defined" The error appears to be at the first line of the macro. The text in that line is "Dim appWD As Word.Application" is highlighted yellow. I have tried to contact the person who created the macro (repeatedly) with no response. I would give the name of the company who created the macro but that wouldn't help. Any ideas of how I can get this macro to work?
 
I was using Powerpoint XP and had a custom macro created which 'transformed' the
PPT file to a Word document (with some customization included in the transfer) Now
I am using PPT 2003 (Office 2003) and when I try to use the macro I get an error
message dialog box "Compile Error:User Defined Type Not Defined" The error appears
to be at the first line of the macro. The text in that line is "Dim appWD As
Word.Application" is highlighted yellow. I have tried to contact the person who
created the macro (repeatedly) with no response. I would give the name of the
company who created the macro but that wouldn't help. Any ideas of how I can get
this macro to work?
It sounds as though you just need a reference set to Word.
Open the file that contains the macro and press Alt+F11 to get into the VB editor.

From the main menu, choose Tools, References.
Scroll down the list of Available References to "Microsoft Word 11.0 Object
Library" and put a check next to it.
Click OK

Now choose Debug, Compile VBA Project for a quick check. If that doesn't bring up
any complaints, run the code to see if it works.


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
I'll bet you could hire some of these responsible people to write your
custom macro for you next time as well. (This isn't an ad because I
don't do that kind of consulting, but I think several people in this
newsgroup do.)
--David

David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Thanks Steve it worked fine! I've tried for a few weeks to get the person who
created the macro to get me this answer.
This group is great! I know where to post questions and get answers from
responsible people. Thanks again!

Fantastic! And thanks for coming back to let us know it worked.
That's better than any paycheck (and a good thing, too, since it's the only paycheck
we get! <g>)

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top