使用定义的变量运行宏

时间:2017-09-19 19:21:15

标签: excel excel-vba vba

我在使用简单的脚本时遇到了麻烦,我肯定会忽略一些小事。

Dim VEXR as boolean
Dim VE0X as boolean
    If [G8]="A10" or [G8]="B03" or [G8]="B10" or [G8]="B12" or [G8]="B14" then VEXR=true else VE0X=true
    If VEXR=true then [A67]="VEXR"
    If VE0X=true then [A67]="VE0X"

出于某种原因,当" A10" (或上面的任何其他指定值)(从下拉菜单中),它返回VE0X为真,这是不正确的。我不确定我做错了什么。

0 个答案:

没有答案