Hubbry Logo
search button
Sign in
WordBASIC
WordBASIC
Comunity Hub
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
WordBASIC
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the WordBASIC Wikipedia article. Here, you can discuss, collect, and organize anything related to WordBASIC. The purpose of the hub is to connect people, foste...
Add your contribution
WordBASIC
WordBASIC
DeveloperMicrosoft
First appeared1989; 36 years ago (1989)
OSMicrosoft Windows, Mac OS X
LicenseCommercial proprietary software
Influenced by
QuickBASIC

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

[edit]

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

[edit]
  1. ^ Halvorson, Michael; Kinata, Chris (1997). Microsoft Word 97 Visual Basic Step by Step. Redmond, WA: Microsoft Press. ISBN 1-57231-388-9.
  2. ^ Conceptual Differences Between WordBasic and Visual Basic, 07/11/2006, Microsoft Docs Archived
  3. ^ Converting WordBasic Macros to Visual Basic, 07/11/2006, Microsoft Docs Archived