Last Updated on January 11, 2023 by token
Sin VBA function – Description
The Sin VBA function returns the sine value. In order to calculate the sine value, you should use this function. For example, the sine of 0 is equal to 0.
VBA Sin function – Syntax
'officeinside.org Sin (Number As Double) As Double
Number : The number you want to calculate the sine for.
Function return : Double / numeric value.
VBA Sin function Example
How to use Sin function in VBA Excel? Below are examples of using the Sin function in the VisualBasic Editor.
Example 1 : An example of using the Sin VBA function – result in the MsgBox window.
' officeinside.org Dim dblNumber As Double dblNumber = 1 MsgBox Sin (dblNumber)
Example 2 : VBA Sin – function example – result in an Excel sheet.
'officeinside.org Dim dblNumber2 As Double dblNumber2 = 0 Range ("A1") = Sin (dblNumber2)
VB Sin function – Additional information
- none
Sin VisualBasic function – Where to use?
The function can be used in: Excel 2003, Excel 2007, Excel 2010, Excel 2013, Excel 2016 , Excel 2019.
The article is part of the VBA Excel function list. You can find a list of all VBA functions at this address: VBA functions .