2.2: Step-by-Step on manually generating VBA Code for Process Runner |
![]() ![]() ![]() |
Users can run Process Runner through VBA-Excel. The following guidelines will lead to generate VBA code manually- for the Process Runner. 1.Open Excel (in our case it is MM02.xlsx file). 2.Go to Developer tab. Note: If the developer tab is absent, Right-click anywhere on the excel toolbar --> Customize Ribbon --> check the 'Developer' option from the right panel under main tab. 3.Select 'Button' control option from 'Developer Tab' as highlighted in the image below.
4.Draw the button on the excel sheet using the selected button tool. You will automatically get a prompt of Assign Macro. Click on OK.
5.Open Visual Basic Editor from Developer --> Visual Basic.
6.Right click on VBAProject --> Insert --> Module.
7.Insert the VBA code in the editor. 8.Refer sample VBA code below for your reference.
9.Right click on the button and select Assign Macro.
10. Select the VBA method that was just created.
11. Ensure to check Macro Security Settings (Developer --> Macro Security) before Run as it will determine your Macro execution level.
12. Now, click on the button “Executing Process” to run the macro. The above steps conclude VBA through Process Runner. Process Runner can also be executed from Dos Command Prompt which gives a brief overview on the various command line parameters that Process Runner accepts. Next: |