当前位置: > 怎么向[c1] = Left([a1],Application.Find(",",[a1],1) - 1)传递参数...
题目
怎么向[c1] = Left([a1],Application.Find(",",[a1],1) - 1)传递参数
Cells(1,3) = Left(Cells(1,1),Application.Find(",",Cells(1,1),1) - 1)
[c1] = Left([a1],Application.Find(",",[a1],1) - 1)
怎么向上面的两个式子传递参数呢?定义一参数i 怎么写cells(i,2)内我写的格式系统提示有错误!
Cells(1,3) = Left(Cells(1,1),Application.Find(",",Cells(1,1),1) - 1)在VBA内使用时,会提示类型不匹配,[c1] = Left([a1],Application.Find(",",[a1],1) - 现在就是不知道怎么向这个式子传递函数,比如 我定义
dim i as integer
i=20
cells(1,3) = Left([ai],Application.Find(",",[ai],1) - 1)
就不对了 提示类型不对.你知道原因在哪里吗?

提问时间:2021-03-16

答案
一、估计是你的i没赋值或为零引起的错误.二、left(ss,0)因为零才出现错误.三、Cells(1,3) = Left(Cells(1,1),Application.Find(",",Cells(1,1),1) - 1)在VBA内使用时,会提示类型不匹配,可能原因是cells(1,1)的单元格...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.