A lightweight Excel add-in that integrates GPT functionality directly into your spreadsheets using VBA.
- Seamless GPT Integration: Access GPT capabilities directly within Excel
- Custom Functions: Use
CALLGPT()and markdown conversion functions - Easy Setup: Simple installation process
- Cross-Platform: Works on Windows (tested) and macOS
Download the VBAGPT.xlam file directly from our repository:
Note: Screenshot showing the download button or link will be added here.
The Excel Add-ins folder location varies depending on your Excel version and operating system:
- Excel 2016/2019/365 (Tested):
C:\Users\[YourUsername]\AppData\Roaming\Microsoft\AddIns\ - Excel 2013:
C:\Users\[YourUsername]\AppData\Roaming\Microsoft\AddIns\ - Excel 2010:
C:\Users\[YourUsername]\AppData\Roaming\Microsoft\AddIns\
/Users/[YourUsername]/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Add-ins/
- Navigate to your Excel Add-ins folder
- Copy the downloaded
VBAGPT.xlamfile to this folder - You can either:
- Drag and drop the file directly into the folder
- Copy and paste the file into the folder
Note: Screenshot showing the drag and drop operation or copy/paste process will be added here.
- Open Excel
- Go to File → Options → Add-ins
- Click Go next to "Manage: Excel Add-ins"
- Click Browse and navigate to your Add-ins folder
- Select
VBAGPT.xlamand click OK - Check the box next to "VBAGPT" in the Add-ins list
- Click OK to confirm
Before using the add-in, you need to configure your API settings:
Set the following named values in your Excel workbook:
| Name | Value | Description |
|---|---|---|
OPENAI_API_KEY |
your-api-key |
Your OpenAI API key |
OPENAI_MODEL |
gpt-4o-mini |
The GPT model to use |
Calls the GPT API with the specified prompt and returns the response. The function only takes in strings, so build your prompt in a help cell, then pass to ChatGPT.
Example:
=CALLGPT("Summarize the following data" & A1)
Converts a table to markdown format with headers.
Example:
=TABLETOMARKDOWN(A1:D10)
Converts a range to markdown format.
Example:
=RANGETOMARKDOWN(A1:D10)
- Ensure the file is in the correct Add-ins folder
- Check that the file extension is
.xlam - Restart Excel after copying the file
- Excel may show security warnings for add-ins
- Click Enable Content when prompted
- You may need to add the Add-ins folder to your trusted locations
- Verify the download completed successfully
- Check that the file size matches the expected size
- Try downloading the file again if necessary
- Excel: 2010 or later
- Internet Connection: Required for GPT API calls
- OpenAI API Key: Get yours from OpenAI Platform
For issues and questions, please check the troubleshooting section above or create an issue in the repository.
Note: This add-in requires an active internet connection to function properly, as it interfaces with GPT services. You must provide your own OpenAI API key.
