|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
语句如下,请大神纠正一下
- Randomize
- If "设计强度" = "C30" Then
- rst("抗压力值1") = Round(800 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C25" Then
- rst("抗压力值1") = Round(700 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C20" Then
- rst("抗压力值1") = Round(520 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C15" Then
- rst("抗压力值1") = Round(400 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C10" Then
- rst("抗压力值1") = Round(260 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C35" Then
- rst("抗压力值1") = Round(910 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C40" Then
- rst("抗压力值1") = Round(1050 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C45" Then
- rst("抗压力值1") = Round(1200 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C50" Then
- rst("抗压力值1") = Round(1300 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C55" Then
- rst("抗压力值1") = Round(1450 + 100 * Rnd(), 1)
- End If
复制代码
|
|