You need to be very careful when adding strings. Use val to convert the textboxes to actual number values:

    e = d / (Val(tboxSPBUY.Value) + Val(tboxSPINV.Value))