WordBASIC
Jump to navigation
Jump to search
Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters". 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.[1] Contrarily to VBA, WordBasic was not object-oriented but consisted of a flat list of approximately 900 commands.[2]
Example code
The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:[3]
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
References
<templatestyles src="Reflist/styles.css" />
- ↑ Script error: No such module "citation/CS1".
- ↑ Conceptual Differences Between WordBasic and Visual Basic, 07/11/2006, Microsoft Docs Archived
- ↑ Converting WordBasic Macros to Visual Basic, 07/11/2006, Microsoft Docs Archived
Script error: No such module "Check for unknown parameters".
Script error: No such module "Navbox". Template:Authority control