CULng Function

Syntax

CULng(expr)

Group

Conversion

Description

Converts to a ULong. If expr is too big (or too small) to fit, an overflow error occurs.

VBA

This language element is not VBA compatible and requires the #Language WWB-COM setting.

Parameters

Parameters Description
expr Converts a number or string value to a ULong.

Sub Main
    Debug.Print CULng(1.6) ' 2
End Sub