2.2: Step-by-Step on manually generating VBA Code for Process Runner

Previous  Home  Next

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.

ButtonCtrl

 

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.

VBA2

 

5.Open Visual Basic Editor from Developer --> Visual Basic.

VBA3

 

6.Right click on VBAProject --> Insert --> Module.

VBA4

 

7.Insert the VBA code in the editor.

8.Refer sample VBA code below for your reference.

VBA5

hmtoggle_arrow1Sample VBA Code

 

9.Right click on the button and select Assign Macro.

VBA6

 

10. Select the VBA method that was just created.

VBA7

 

11. Ensure to check Macro Security Settings (Developer --> Macro Security) before Run as it will determine your Macro execution level.

VBA8

 

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:

Chapter3: How to enable Trust Access to VBA Projects