×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to execute CATIA V5 macro from Excel VBA?

How to execute CATIA V5 macro from Excel VBA?

How to execute CATIA V5 macro from Excel VBA?

(OP)
Hello,

Is it possible to executa a CATIA V5 macro from Excel VBA script?

Right now, I am using sendkeys in the VBA Excel macro to send the commands to V5 to run the macro, but that is very clunky.  Can not find any VBA commands to control the V5 macros directly.  Is there a better way than sendkeys to do this?

Does anyone have an example of how to do it?


Some background: trying to work with an existing V5 macro that someone else wrote.  This is a .catvba macro and needs to have the CATAnalysis and CATPart open while it is running.  The V5 macro takes an input from an open Excel sheet, runs some V5 analysis, and dumps the output back to Excel.  For now trying to use the existing V5 macro as-is, eventually will try to re-write the whole thing to have V5 run in batch mode.  


Thanks,
rs

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources