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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 16:08:40  来源:igfitidea点击:

What does "range("F:F")" mean in an Excel macro?

excelvba

提问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 Fcolumn. F:His columns F, Gand Hetc.

这意味着整个F列的范围。F:H是列FGH

回答by SLaks

F:Fmeans the entire Fcolumn.

F:F表示整F列。