Return to VBA Code Examples

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

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! vba save as

Learn More!