Aug 23, 2013 #1 Maddy02 Mechanical Feb 14, 2013 114 IN Hi Guys, Could somebody let me know how to get the path of the current active CATVBA project. I guess Application.ActiveVBProject.Filename kind of thing wont work in CATIA as they do. Perhaps a little bit of code will help a lot. Regards, Maddy
Hi Guys, Could somebody let me know how to get the path of the current active CATVBA project. I guess Application.ActiveVBProject.Filename kind of thing wont work in CATIA as they do. Perhaps a little bit of code will help a lot. Regards, Maddy
Aug 24, 2013 #2 ferdo Mechanical Jul 4, 2002 2,840 RO Hi, Why not, did you tried? Add a reference to 'Microsoft Visual Basic for Applications Extensibility' in your VBA project. Then Set oVBE = Application.VBE MsgBox oVBE.ActiveVBProject.FileName Regards Fernando https://picasaweb.google.com/102257836106335725208https://picasaweb.google.com/103462806772634246699/ Upvote 0 Downvote
Hi, Why not, did you tried? Add a reference to 'Microsoft Visual Basic for Applications Extensibility' in your VBA project. Then Set oVBE = Application.VBE MsgBox oVBE.ActiveVBProject.FileName Regards Fernando https://picasaweb.google.com/102257836106335725208https://picasaweb.google.com/103462806772634246699/
Aug 24, 2013 Thread starter #3 Maddy02 Mechanical Feb 14, 2013 114 IN Hi ferdo Thanks for reply. I did tried it, but it was giving error in application Iin case of catia ,, how could I pass application? thats why I'm confused. Regards, Maddy Upvote 0 Downvote
Hi ferdo Thanks for reply. I did tried it, but it was giving error in application Iin case of catia ,, how could I pass application? thats why I'm confused. Regards, Maddy
Aug 24, 2013 #4 ferdo Mechanical Jul 4, 2002 2,840 RO Strange, should work, but you are right, no result. Regards Fernando https://picasaweb.google.com/102257836106335725208https://picasaweb.google.com/103462806772634246699/ Upvote 0 Downvote
Strange, should work, but you are right, no result. Regards Fernando https://picasaweb.google.com/102257836106335725208https://picasaweb.google.com/103462806772634246699/
Aug 26, 2013 Thread starter #5 Maddy02 Mechanical Feb 14, 2013 114 IN no result -> What? Did you tried the same?. Any ideas on how to use this to get the path. Regards, Maddy Upvote 0 Downvote
no result -> What? Did you tried the same?. Any ideas on how to use this to get the path. Regards, Maddy