Catia VBA Macro Toolbar
Catia VBA Macro Toolbar
(OP)
Hello everyone.
I am working on a VBA macro toolbar that would have tabs and buttons for various macros. My only problem is that I feel like I am missing something.
Currently, at the end of each macro, I have "Unload Me" to let the macro run and close the toolbar window. Without this command you could press as many macro buttons as you want but they will only run after you close the window (using "Unload Me" again).
Is there a way of making the macros run immediately after clicking the button without closing the toolbar window?
Thank you.
I am working on a VBA macro toolbar that would have tabs and buttons for various macros. My only problem is that I feel like I am missing something.
Currently, at the end of each macro, I have "Unload Me" to let the macro run and close the toolbar window. Without this command you could press as many macro buttons as you want but they will only run after you close the window (using "Unload Me" again).
Is there a way of making the macros run immediately after clicking the button without closing the toolbar window?
Thank you.





RE: Catia VBA Macro Toolbar
Check Google
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia VBA Macro Toolbar
CODE --> vb
Private Sub CaptureBtn_Click(sender As Object, e As RoutedEventArgs) Handles CaptureBtn.Click 'GET CATIA V5 Dim myCATIA As INFITF.Application On Error Resume Next myCATIA = CType(GetObject(, "CATIA.Application"), INFITF.Application) myCATIA.StartCommand("Capture") End Sub Private Sub StartUpBtn_Click(sender As Object, e As RoutedEventArgs) Handles StartUpBtn.Click Process.Start("xxxxxxxxxxxxxx") End SubI'm playing with custom toolbar too (Design using WPF).
RE: Catia VBA Macro Toolbar
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia VBA Macro Toolbar
Tiago Figueiredo
Tooling Engineer
RE: Catia VBA Macro Toolbar
@ferdo I tried googling it but, as your example proves, you have to know what to search for :D. I found a couple of useful answers there now.
@jenial I will try your idea as well soon and let you know how it worked out. Your toolbar looks much better, I have settled for a more classic approach.
Thank you for your help.
RE: Catia VBA Macro Toolbar
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Catia VBA Macro Toolbar
I call this application macros pallet. It's like a library.
Regards,
Jenia Ladkov