Basic 語法公式包含一連串的陳述式。每個陳述式與前一個陳述式之間,都必須以新的一行或冒號隔開。通常每個陳述式會使用一行,但是可以使用行連續字元 (空格加底線) 將陳述式延續到下一行。
範例
'Declare a variable x to hold a number Dim x As Number 'Assign the value of 30 to x x = 10 + 10 + 10 'This also assigns the value of 30 to x x = 10 + _ 10 + 10 'Line continuation characters _ can also be used in comments Dim y as String 'Three statements separated by two colons y = "Hello" : x = 30 : formula = True