VBA CLngLng Function

CLngLng Description

Returns the expression converted to a longlong (64 bit platform) data type. Valid on 64-bit platforms only.

CLngLng Syntax

In the VBA Editor, you can type  “CLngLng(” to see the syntax for the CLngLng Function:

The CLngLng function contains an argument:

Expression: Any string or numeric expression.

Examples of Excel VBA CLngLng Function

Sub CLngLng_Example()
    Dim lngVal As LongLong
    
    lngVal = CLngLng("-92233720368.54775808")
    MsgBox lngVal
End Sub

Running the above VBA code, it will display a message box as following.