VBA Programming Series...10 - IT Skills

This blog is for IT lovers, accounts and finance executives who want to add value in their professional life.

test

Welcome to our blog. This blog is for IT lovers, Accounts/Finance Executives who wants to add value in their career path.

Search This Blog

Sunday, 20 May 2018

VBA Programming Series...10

test

Executing the Sub procedure directly


The quickest way to execute this procedure is by doing so directly from the

VBA module in which you defined it. Follow these steps:

1. Activate the VBE and select the VBA module that contains the procedure.
2. Move the cursor anywhere in the procedure’s code.

3. Press F5 (or choose Run➪Run Sub/UserForm).

4. Respond to the input box and click OK.

The procedure displays the cube root of the number you entered.


You can’t use the Run➪Run Sub/UserForm command to execute a Sub proce-dure that uses arguments, because you have no way to pass the arguments to the procedure. If the procedure contains one or more arguments, the only way to execute it is to call it from another procedure — which must supply the argument(s).


No comments:

Post a Comment

Popular

Welcome to our blog. If you want to; learn writing skills, preparation for CSS/Corporate laws, IT skills, downloading Business/IT books, and many more; this blog is for you.