Results 1 to 2 of 2

Thread: Run Macro

  1. #1
    Member
    Join Date
    2009-08
    Posts
    3
    Login to Give a bone
    0

    Unhappy Run Macro

    Hi all!
    I'm with a simple doubt but I'm not getting solve it....
    I developed a external application on VB6 and I want to start a existent macro into the Drawing. This macro publish the drawing in DWF file. I have the default VBA project called "PublishDWF.ivb", the "Module1" and the "PublishDWF()" function. I tried to use the definition:
    Dim oVBProject as Inventor.InventorVBAProjects
    Set oVBProject = ThisApplication.VBAProjetcts
    but the VB6 shows me a error message informing that the ActiveX can't be create...
    Could anybody help me?
    Thks!!!

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,396
    Login to Give a bone
    0

    Default Re: Run Macro

    I haven't worked with vba in IV, but in acad, you use Application.RunMacro().
    C:> ED WORKING....

Similar Threads

  1. CP222-2: Autodesk Revit VSTA: Writing Your First Macro An Introduction to the Macro Manager
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 02:12 AM
  2. 2011: Macro's
    By JLHConsulting in forum AutoCAD General
    Replies: 2
    Last Post: 2010-04-27, 06:02 PM
  3. macro:
    By clintonc in forum VBA/COM Interop
    Replies: 3
    Last Post: 2008-08-11, 02:10 PM
  4. Challenging Macro to reverse the function of an existing macro
    By parminderkeilah in forum VBA/COM Interop
    Replies: 1
    Last Post: 2008-05-19, 02:50 PM
  5. call script within macro & nested macro
    By wahyudin in forum AutoCAD LT - General
    Replies: 3
    Last Post: 2007-10-22, 01:10 PM

Posting Permissions

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