如何比较值来做出决定 [英] How to compare values to make a decision
问题描述
我正在尝试比较"任务名称"列的值来做出决定。我找到了类似
I am trying to compare the value of the Task Name column to make a decision. I have found codes like
msoFilterComparisonContains 的代码,但我认为这只适用于数字而不是字母。
msoFilterComparisonContains, but I think this only works for numbers and no letters.
我需要的是将Task Name的值与设置值进行比较,然后执行If Then命令。我使用selectTaskName,我能够选择列,但我无法将其与另一个值进行比较。是否有我缺少的特定命令?
What I need is to compare the value of Task Name with a set value and do an If Then command. I use selectTaskName and I am able to select the column but I have not been able to compare it to another value. Is there a specific command that I am missing?
推荐答案
你还没有说您正在编程,但使用VBA:
You haven't said what you're programming in, but with VBA use:
这篇关于如何比较值来做出决定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!