vba Excel 宏中的“范围(“F:F”)”是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10603186/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does "range("F:F")" mean in an Excel macro?
提问by Jacxel
I'm debugging a macro and have very little experience with them, what does the f:f mean? I understand the first range and I'm guessing the f:f means the currently selected range but that's just a guess.
我正在调试一个宏并且对它们的经验很少,f:f 是什么意思?我理解第一个范围,我猜 f:f 表示当前选择的范围,但这只是一个猜测。
ws.Range("A1:M65536").ClearContents
ws.Range("F:F").FormatConditions.Delete
Could someone clarify for me please?
有人可以为我澄清一下吗?
回答by Martin Liversage
It means the range that is the entire F
column. F:H
is columns F
, G
and H
etc.
这意味着整个F
列的范围。F:H
是列F
,G
并H
等
回答by SLaks
F:F
means the entire F
column.
F:F
表示整F
列。