vb 运行错误 1004 不能取得类WorksheetFunction的Combin属性 15
Sub1()m=InputBox(“参数1”)n=60o=InputBox(“参数2”)Fory=oTonForZ=0To(m-1)x=Application.Works...
Sub 1()
m = InputBox(“参数1”)
n = 60
o = InputBox(“参数2”)
For y = o To n
For Z = 0 To (m - 1)
x = Application.WorksheetFunction.Combin(y, Z) * Application.WorksheetFunction.Combin(60 - y, o - Z) / Application.WorksheetFunction.Combin(60, o) + x
Next
If x < 0.2 Then
MsgBox ( y)
End If
Next
End Sub 展开
m = InputBox(“参数1”)
n = 60
o = InputBox(“参数2”)
For y = o To n
For Z = 0 To (m - 1)
x = Application.WorksheetFunction.Combin(y, Z) * Application.WorksheetFunction.Combin(60 - y, o - Z) / Application.WorksheetFunction.Combin(60, o) + x
Next
If x < 0.2 Then
MsgBox ( y)
End If
Next
End Sub 展开
1个回答
2013-03-24
展开全部
输入的两个数字超出范围了
追问
m我输入的是5,o输入的是10。应该不会超啊
追答
不相信就算了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询