Excel精英培训网

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

[已解决]vba 怎么输入无效字符?

[复制链接]
发表于 2011-9-18 15:50 | 显示全部楼层 |阅读模式
在VBA中用FormulaR1C1方法输入公式很方便,可有时想返回一个有“$”字符的绝对值引用,可是在VBA里面说它是无效字符,请问怎么输出入这个字符?
最佳答案
2011-9-20 04:24
回复 kiss999 的帖子

use '$' in: Formula =, not in: FormulaR1C1 =

so the following are the same:

FormualR1C1 = "=R1C1 + R1C2"

Formula = "=$A$1 + $B$1"
发表于 2011-9-18 16:31 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2011-9-19 14:15 | 显示全部楼层
回复

使用道具 举报

发表于 2011-9-20 02:11 | 显示全部楼层
回复 kiss999 的帖子

没有实例,怎么知道什么意思??
回复

使用道具 举报

发表于 2011-9-20 04:24 | 显示全部楼层    本楼为最佳答案   
回复 kiss999 的帖子

use '$' in: Formula =, not in: FormulaR1C1 =

so the following are the same:

FormualR1C1 = "=R1C1 + R1C2"

Formula = "=$A$1 + $B$1"
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-17 19:03 , Processed in 0.212283 second(s), 13 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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