View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jim Jackson Jim Jackson is offline
external usenet poster
 
Posts: 324
Default Dim VBComp As VBIDE.VBComponent

Thanks.

I will do that. I knew it had to be something simple.
--
Best wishes,

Jim


"Andrew Taylor" wrote:

You need to add a reference to "Microsoft Visual Basic For
Applications Extensibility" (in the VBA window, select
Tools/References and set the check box for this).

Andrew



Jim Jackson wrote:
I am getting the "user-defined type not defined" error message on this line:

Dim VBComp As VBIDE.VBComponent

I thought I had worked around it but, when the modules were imported, they
only contained jibberish so obviously I need this line.

Can anyone tell me what is missing?

--
Best wishes,

Jim