Subnet calculator gives you the subnet mask, maximum number of subnets allowed, maximum number of hosts per subnet & increment for IP address range, based on your network ID and requirements.
Assumes
Found a small glich in the code.
Please cut and paste the following in cmdOK_click
between
case is = 1 &
case is = 3
Case Is = 2
If X > 0 Then
If X > 255 Then
MsgBox "Invalid ID Range", vbExclamation, "Error"
txtX.SetFocus
txtX.Text = ""
Exit Sub
End If
End If
Sorry about that!!