Reference articles on history, science, culture and more
Encyclopedia

WordBASIC

WordBASIC was a subset of Microsoft QuickBASIC customized for word-processing in Microsoft Word. It was replaced by Visual Basic for Applications (VBA) when Word 97 was released. Contrarily to VBA, WordBasic was not object-oriented but consisted of a flat list of approximately 900 commands.

01Example code

The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:

WordBasic:

Sub MAIN FormatFont .Name = "Arial", .Points = 10 Insert "Hello, World!" End Sub

VBA:

Public Sub Main() With Selection.Font .Name = "Arial" .Size = 10 End With Selection.TypeText Text:="Hello, World!" End Sub
Watch videos about WordBASICExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article WordBASIC, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.