WorksheetFunction.Munit (Excel)

Returns the unit matrix for the specified dimension.

Munit (Arg1)

Arg1: Integer specifying the dimension of the unit matrix that you want to return.


Dim dblArg1 As Double: dblArg1 = 
Dim varMunit As Variant
varMunit = WorksheetFunction.Munit(Arg1:=dblArg1)