Oct function

Category: Conversion

Summary

Octal string of a number.

Syntax

Returns a Variant (String) representing the octal value of a number.

Example

Example
This example uses the Oct function to return the octal value of a number.
Dim MyOct
MyOct = Oct(4) ' Returns 4.
MyOct = Oct(8) ' Returns 10.
MyOct = Oct(459) ' Returns 713.

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/oct-function

Back to Functions