Skip to content
Surf Wiki
Save to docs
technology/programming-languages

From Surf Wiki (app.surf) — the open knowledge base

WordBASIC


FieldValue
year
developerMicrosoft
influenced_byQuickBASIC
operating_systemMicrosoft Windows, Mac OS X
licenseCommercial 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

  1. (1997). "Microsoft Word 97 Visual Basic Step by Step". Microsoft Press.
  2. [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]
  3. [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]
Info: Wikipedia Source

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.

Want to explore this topic further?

Ask Mako anything about WordBASIC — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This 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