|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
语句如下,请大神纠正一下
- 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
复制代码
|
|