If Statement With Multiple Lines

后端 未结 5 896
清歌不尽
清歌不尽 2020-12-16 09:37

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 ha

5条回答
  •  無奈伤痛
    2020-12-16 10:30

    break them with an under score _ ?

    Microsoft Library

    from above link

    If ActiveSheet.ChartObjects(1).Chart.ChartTitle = _
          ActiveSheet.Range("a2").Value Then
       MsgBox "They are equal."
    End If
    

提交回复
热议问题