Chat completions from VBA

COM & Office Automation

Bring the same chat client into legacy Windows automation environments.

Explore source
Parent systemChatGPT
StatusMaintained
Modules1
RepositoryChatGPT/ChatGptCom

A .NET Framework COM-visible bridge exposes asynchronous chat operations and completion events to Windows automation clients, including Word and VBA translation, drafting, and form workflows.

  1. 01

    COM-visible Chat API

  2. 02

    Asynchronous completion events

  3. 03

    Word and VBA integration examples

  4. 04

    .NET Framework automation bridge

From intent
to working system.

01

Register

The assembly and type library become available to COM clients.

02

Create

Automation code initializes a chat session and settings.

03

Send

Async methods submit prompts without blocking the host UI.

04

Handle

COM events return output to documents, forms, or macros.

Adopt this
capability.

Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.

01 · Install
Terminal
dotnet add package ChatGptCom
02 · Use · csharp
QuickStart.cs
// Register the COM assembly, reference its type library,
// then create ChatGptCom.Chat from VBA or another COM client.
var chat = new ChatGptCom.Chat();
chat.Create("You are a helpful assistant", 2000, "gpt-3.5-turbo");
chat.AskAsync("Translate to English", sourceText);

Use one layer.
Compose the rest.

Read the module beside the complete system.

The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.

ChatGPT

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…