In our last post article we discussed about Providing Icons to the VBA Form. In this blog let us take a step ahead and discuss about adding File Menu to the VBA forms.
In this blog we will take an example of the IC Transfer screen which has been customized once for our clients using a VBA Macro. VBA Macro does not have inbuilt feature of Menu Editor through which we can create Menu in the form.
The New Stuff : AR Customer Receipt Enquiry
By following a simple workaround, you can Add Menu to a VBA macro and in turn call the standard File Menu of the Accpac OCX File menu in VBA Macro.
Step 1: Take a label on the VBA Form
Step 2: Give the name of the Label as lblShowMenu1 (user can provide any name) as shown in the below screenshot:
Step 3: Next step is to write the below code on the click of the lblShowMenu1,
Private Sub lblShowMenu1_Click ()
After adding the above code snippet and execution of the program you can notice that the File Menu has been added to the VBA form as shown in the below screenshot:
Also Read :
1. VBA Macro Errors related to EXD Files
2. Macros in Sage 300 ERP
3. How To Add A Macro To Accpac Desktop of Sage 300 ERP
4. Run VBA Macro without Logging to Sage 300 ERP
5. Define Budget Using Macro