Vba screen updating

Step 1: Go To Developer tab from the main ribbon of Excel window.

Step 2: Click on ‘Stop Recording’ command button to stop from the recording macro.

Check out the Mr Excel tutorials for more information on how to properly use Excel VBA.

Class Modules: Class module allows to create new objecs and define methods, properties and events.

Also, it will allow to enhance the existing objects.

Step 3: Once you click on the Macros command button, Macro dialog box will appear on the screen.

Step 4: Select macro name which you want to delete macro and then click on ‘Delete’ command button. In the above example, the macro will run automatically when we are opening workbook.

By Ref: Specifies that an argument is passed in such a way that the called procedure can change the value of a variable underlying the argument in the calling code. It is good practice to include the By Ref declaration if you are going to change the value of the parameter.