Figure 1: Add Developer Tab Into Excel 2007 Ribbon
Figure 1: Add Developer Tab Into Excel 2007 Ribbon
Figure 1: Add Developer Tab Into Excel 2007 Ribbon
How to add Developer Tab into Excel 2010 and 2013 Ribbon:
Click the File tab;
Click the Options at the left to enter into Excel Option window;
To display the Developer tab, click on the Microsoft Office button in the top left of
the Excel window and then click on the Excel Options button.
When the Excel Options window appears, click on the Popular option on the left. Select
the option called "Show Developer tab in the Ribbon". Then click on the OK button.
Select the Developer tab from the toolbar at the top of the screen. Then click on
the Visual Basic option in the Code group.
Now the Microsoft Visual Basic editor should appear and click on Insert -> Module.
Code:
Public Function it_tds(Pension As Range) As String
Dim it As Currency, limit0 As Currency, limit10 As Currency, Limit20 As Currency, limit30 As Currency
limit0 = 300000 / 12
limit10 = 500000 / 12
Limit20 = 1000000 / 12
If Pension < limit0 Then
it = 0
ElseIf Pension < limit10 Then
it = (Pension - limit0) * 0.1
ElseIf Pension < Limit20 Then
it = (Pension - limit10) * 0.2 + (limit0 * 0.1)
Else
it = (Pension - Limit20) * 0.3 + (limit0 * 0.2) + (limit0 * 0.1)
End If
it_tds = Round(it, 2)
End Function
In the trust centre settings click on the ‘Macro Settings’ .And from there you can choose the security level for
running macros.