VBA assign button


Results 1 to 2 of 2

Thread: VBA assign button

  1. #1
    Member
    Join Date
    Aug 2009
    Location
    Bosna najljepša
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default VBA assign button

    Hello,
    I created some VBA project. I must run it by going to macro and then RUN.
    Is there way to make custom button in menu for running it?

    Thanks

    Similar Threads:


  2. #2
    Member Maroslav4's Avatar
    Join Date
    Apr 2015
    Location
    Czech Republic
    Posts
    282
    Downloads
    7
    Uploads
    0

    Default Re: VBA assign button

    Yes of course.

    For example you can create module - Events and use something like this

    Option Explicit


    Function InitAlphacamAddIn(AcamVersion As Long) As Integer


    Dim fr As Frame
    Set fr = App.Frame
    fr.AddMenuItem2 "Test_1111", "show_Form1", acamMenuNEW, "&Write something"
    InitAlphacamAddIn = 1

    End Function

    Function show_Form1()

    Load FrmMain
    FrmMain.Show
    End Function

    Check also API documentation in Alphacam - try find Frame.AddMenuItem2

    Postprocessors, VBA macros, .NET programming.
    www.cadcam-softcz.cz


Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

VBA assign button

VBA assign button

VBA assign button