excel中VBA函数 log10()
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/07/01 05:12:31
excel中VBA函数 log10()
Cells(3,k + 2).Value = Cells(6,19) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,2) + Cells(6,20) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,1) + Cells(6,21) '将这个单元格的应力σ算出来
编辑器为什么说Log10()没有定义而报错,难道VBA中没有Log10()这个函数吗?
那么vba中Log10(),即以10为底的对数函数,该怎么写了?
Cells(3,k + 2).Value = Cells(6,19) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,2) + Cells(6,20) * Power((Cells(3,k) + 273) * (Log10(Cells(3,30)) + Cells(2,23)) / 1000,1) + Cells(6,21) '将这个单元格的应力σ算出来
编辑器为什么说Log10()没有定义而报错,难道VBA中没有Log10()这个函数吗?
那么vba中Log10(),即以10为底的对数函数,该怎么写了?
![excel中VBA函数 log10()](/uploads/image/z/2779369-25-9.jpg?t=excel%E4%B8%ADVBA%E5%87%BD%E6%95%B0+log10%EF%BC%88%EF%BC%89)
LOG10是工作表函数,在VBA中要使用工作表函数,必须通过 WorksheetFunction 对象:
Cells(3, k + 2).Value = Cells(6, 19) * Power((Cells(3, k) + 273) * (WorksheetFunction.Log10(Cells(3, 30)) + Cells(2, 23)) / 1000, 2) + Cells(6, 20) * Power((Cells(3, k) + 273) * (WorksheetFunction.Log10(Cells(3, 30)) + Cells(2, 23)) / 1000, 1) + Cells(6, 21)
Cells(3, k + 2).Value = Cells(6, 19) * Power((Cells(3, k) + 273) * (WorksheetFunction.Log10(Cells(3, 30)) + Cells(2, 23)) / 1000, 2) + Cells(6, 20) * Power((Cells(3, k) + 273) * (WorksheetFunction.Log10(Cells(3, 30)) + Cells(2, 23)) / 1000, 1) + Cells(6, 21)
excel中VBA函数 log10()
如何用vba在excel中自定义一个函数
Excel中VBA取固定数值随机数
在EXCEL中,如何同时求多组数据的百分位数?打算用VBA实现,在VBA中求一组数据的百分位数的函数是什么?
EXCEL VBA中range的用法,(定义空range和删除range中的行)
excel for循环函数求和,求VBA计算代码!
求在Excel里面用VBA做函数.
如何利用excel中vba自定义函数产生一组指定区间波动的随机数,有合格率限制
excel vba中 range.text和range.value的区别
关于excel vba 中 Range(cells,cells).select
Excel VBA中,怎样对一排数字去小数点?
EXCEL VBA中WITH的语法和用法?