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.
VBA Coding Made Easy
Stop searching for VBA code online. Learn more about AutoMacro - A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!
Learn More!