Professional Documents
Culture Documents
Cell ‘h16’
Sub ZcalcDAKEoS()
End Sub
Notes
1. Cell ‘h15’ contains the formula, whereas cell ‘h16’ contains the value to be changed to bring difference
between RHS and LHS of the equation to 0.0
2. To assign a button and put the above Macro code, follow below
1. In MS-Excel, Click File -> Options ->Add-Ins -> Go.
2. Select “Analysis ToolPak” and “Analysis ToolPack – VBA”
3. Click OK
Next Step: After drawing a button. Right click on it and click Assign Macro
Next Step: Copy Paste the Macro Code Given on Page 1 and change the cell numbers appropriately
Save the File as xyz.xlsm. It is a must to save the file as *.xlsm to enable macros.