Office/VBA
VBA에서 IF 문장 OR 쓰기
belitino
2012. 12. 17. 19:33
출처: http://www.mrexcel.com/forum/excel-questions/117239-visual-basic-applications-if-statement.html
VBA If 문장에서 OR 연산을 쓰기 위해 구글링 해보니 Or 네요.
sub test()
If Range("A1") = 1 Or Range("A1") = 2 Then MsgBox "A1 equals either 1 or 2"
end sub
If Range("A1") = 1 Or Range("A1") = 2 Then MsgBox "A1 equals either 1 or 2"
end sub