LoginSignup
1
1

More than 3 years have passed since last update.

Notは美しくないから記号にしてみた。

Last updated at Posted at 2019-07-17

VBAで条件を反転する場合、

IF Not(条件) THEN
    実行文
ENDIF

というは、美しくないので、数学の記号をつかう。

IF ¬(条件) THEN
    実行文
ENDIF

種は、ユーザ定義関数で、Notを再定義してみた。

Function ¬(A)
    ¬ = Not (A)
End Function

但し、記号でも関数名に使えるもの、使えないものがあるようだ。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1