From Surf Wiki (app.surf) — the open knowledge base
WordBASIC
| Field | Value |
|---|---|
| year | |
| developer | Microsoft |
| influenced_by | QuickBASIC |
| operating_system | Microsoft Windows, Mac OS X |
| license | Commercial proprietary software |
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.
Example 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
References
References
- (1997). "Microsoft Word 97 Visual Basic Step by Step". Microsoft Press.
- [https://msdn.microsoft.com/en-us/library/office/aa211963%28v=office.11%29.aspx Conceptual Differences Between WordBasic and Visual Basic], 07/11/2006, Microsoft Docs [https://web.archive.org/web/20181201005818/https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa211963(v=office.11) Archived]
- [https://msdn.microsoft.com/en-us/library/office/aa211926%28v=office.11%29.aspx Converting WordBasic Macros to Visual Basic], 07/11/2006, Microsoft Docs [https://web.archive.org/web/20181201005937/https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa211926(v=office.11) Archived]
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about WordBASIC — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report