CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2001
    Location
    Portugal
    Posts
    39

    How to call a OCX in VBA

    ello
    My problem is the following:

    I have an ActiveX made in C++.
    Now I want to invoke it's methods , have acess to some var's of it in a Word macro, VBA.
    How do I do this ??


  2. #2
    Join Date
    May 2001
    Location
    Portugal
    Posts
    39

    Re: How to call a OCX in VBA

    word 2000 btw , dunno if it makes any diference

    Migx
    http://www.speech.inesc.pt

  3. #3
    Join Date
    May 2001
    Location
    UK
    Posts
    11

    Re: How to call a OCX in VBA

    In the VBA editor, from the 'Tools' menu click 'References'; in the dialogue which then appears, if necessary change the 'Files of type:' filter to 'ActiveX controls (*.ocx)'.

    The control(s) should then be visible in the editor, and in the Object Browser.


  4. #4
    Join Date
    May 2001
    Location
    Portugal
    Posts
    39

    Re: How to call a OCX in VBA

    Hey
    it worked m8, tks a lot

    Migx
    http://www.speech.inesc.pt

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

Featured