vba.replace(string,findstr,replacestr)

解决方案 »

  1.   

    to: shawls      你把我的意思理解错了,replace函数替换出来的任然是一个字符串,我是想把它替换出来像命令一样运行,自已自动进行计算.
      

  2.   

    to: shawls
         
         你把我的意思理解错了,replace函数替换出来的任然的一个字符串,我想把它替换出来当作命令一样执行,让其自动进行计算。
      

  3.   

    vb内部函数
    Replace(expression,find,replacewith[,start[,count[,compare]]])e.g.
    "abc" "b"环卫 "d"
    str="abc"
    newstr=replace(str,"b","d")