Results 1 to 4 of 4

Thread: How do I get access to the classes... (VBA)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112

    Question

    Anyone know how to gain access to classes in a template that has been added to the references in the current project?
    One can get access to the modules but not the classes.
    (Word97)

  2. #2
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290
    I want to know too!

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What do you mean gain access? If you don't have word on your computer then you don't have the word class to gain access to. Do you mean use/reference in your project?

    Public appWord as New Application.Word

    If you have someelse's code and it references a class that you don't have on your machine then it says it is missing. You have to get the files that make that class (dlls or whatever).

    Please clarify your question.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    I'm working from withing Word97. (pure VBA)
    I've made one template with some modules and some classes.
    Now I'm working on another template that have references to the 1st template.
    Now the problem:
    I can get access to the subs and functions of the modules in the 1st template, but I can't use its classes. The classes don't show up. It doesn't show up in the object-viewer. It's like it's not there.

    (If you make classes in an activex dll in vb and make a reference to it from the word-template, you can see the classes.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width