
You can convert binary to decimal!

Use the following Worksheet function:
Bin2Dec Function
VBA Code
You can convert binary to decimal.
Option Explicit
Sub sampleProc()
Dim targetNum As Long
'Set "target binary"
targetNum = 10101
'Convert binary to decimal
MsgBox WorksheetFunction.Bin2Dec(targetNum)
End Sub
Result
You converted binary to decimal!

FYI No.1
Also, you can convert decimal to binary!
For more information, see the following article:
FYI No.2
For more information about following, see the following official online manual:
●“Bin2Dec method” of “WorksheetFunction Object”
●BIN2DEC Function