encyclopegia.org

OpenOffice Basic

OpenOffice Basic (formerly known as StarOffice Basic or StarBasic or OOoBasic) is a dialect of the programming language BASIC that originated with the StarOffice office suite and spread through OpenOffice.org and derivatives such as Apache OpenOffice and LibreOffice (where it is known as LibreOffice Basic). The language is a domain-specific programming language which specifically serves the OpenOffice application suite.

OpenOffice Basic (formerly known as StarOffice Basic or StarBasic or OOoBasic) is a dialect of the programming language BASIC that originated with the StarOffice office suite and spread through OpenOffice.org and derivatives such as Apache OpenOffice and LibreOffice (where it is known as LibreOffice Basic). The language is a domain-specific programming language which specifically serves the OpenOffice application suite. Sub ParaCount ' ' Count number of paragraphs in a text document ' Dim Doc As Object, Enum As Object, TextEl As Object, Count As Long Doc = ThisComponent ' Is this a text document? If Not Doc.SupportsService("com.sun.star.text.TextDocument") Then MsgBox "This macro must be run from a text document", 64, "Error" Exit Sub End If Count = 0 ' Examine each component - paragraph or table? Enum = Doc.Text.CreateEnumeration While Enum.HasMoreElements TextEl = Enum.NextElement ' Is the component a paragraph? If TextEl.SupportsService("com.sun.star.text.Paragraph") Then Count = Count + 1 End If Wend 'Display result MsgBox Count, 0, "Paragraph Count" End Sub Partial support for VBA API under Option VBASupport 1 was introduced with OpenOffice 2.x circa 2005. An underlying feature is Option Compatible , which enables a number of language features found in VBA (as well as other extensions beyond the StarBasic original). These features has been inherited into later versions as well as LibreOffice. LibreOffice has further built upon Option Compatible to provide more compatibility features and new features. This option is implicitly enabled when opening a Microsoft Office document containing VBA code. The following Option directives are found in OpenOffice Basic and its dialects:

References

No reference rows published for this article.

Cite this article

MLA

"OpenOffice Basic." encyclopegia.org, 2026, https://encyclopegia.org/wiki/openoffice-basic. Accessed 24 November 2026.

Chicago

"OpenOffice Basic." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/openoffice-basic.

APA

encyclopegia.org. (2026). OpenOffice Basic. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/openoffice-basic

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Integer BASIC

enwiki · references available

Commodore BASIC

enwiki · references available

SmallBASIC

enwiki · references available

Dudley Ryder, 1st Earl of Harrowby

enwiki · references available

Henry Bathurst, 3rd Earl Bathurst

enwiki · references available

John Ward, 1st Earl of Dudley

enwiki · references available

Granville Leveson-Gower, 2nd Earl Granville

enwiki · references available

Sonic the Hedgehog (8-bit video game)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378446067 · 0.5 · snapshot enwiki-001378446067

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.