If 语句多行 [英] If Statement With Multiple Lines

查看:28
本文介绍了If 语句多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有多个条件的 if 语句.我无法在单个窗口视图中看到它们.有没有办法将它们分开在不同的行上,或者必须将它们全部写在一行中?

I have an if statement with multiple conditions. I cannot see them all in a single window view. Is there a way to separate them on different lines or do they have to be written all in one line?

推荐答案

VBA 换行符是下划线 _

The VBA line-continuation character is an underscore _

if ( _
    (something) _
    or (somethingelse) _
) 

这篇关于If 语句多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆