Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1637|回复: 4

请教了

[复制链接]
发表于 2011-4-16 14:26 | 显示全部楼层 |阅读模式
Sub BLFUZHI1()
Sheet1.Select
我们 = 100
Cells(1, 1) = " 我 "
Cells(1, 2) = " 们 "
Cells(1, 3) = Cells(1, 1) + Cells(1, 2)
End Sub
咋样在cells(1,3)中显示100?
发表于 2011-4-16 14:38 | 显示全部楼层
这个,真不知道{:1012:}
好像发错了地方,去VBA问
回复

使用道具 举报

发表于 2011-4-16 15:12 | 显示全部楼层
if Cells(1, 1) = " 我 " and  Cells(1, 2) = " 们 "  then cells(1,3)=100

end if
回复

使用道具 举报

发表于 2011-4-16 16:06 | 显示全部楼层
本帖最后由 天马 于 2011-4-16 16:06 编辑

Sub BLFUZHI1()
     Sheet1.Select
    ActiveWorkbook.Names.Add Name:="我们", RefersToR1C1:="=Sheet1!R1C1"
    Cells(1, 1) = 100
    Cells(1, 2) = "我"
    Cells(1, 3) = "们"
    Cells(1, 4) = "=" & Cells(1, 2) & Cells(1, 3)
End Sub
回复

使用道具 举报

发表于 2011-4-16 16:22 | 显示全部楼层
if Cells(1, 1) = " 我 " and  Cells(1, 2) = " 们 "  then cells(1,3)=100

end if
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-9-24 18:57 , Processed in 0.550346 second(s), 6 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表