Skip to main content
Glama

execute_vba

Run VBA code in open Excel workbooks to automate tasks, process data, or customize functionality. Code executes within temporary modules that are automatically cleaned up.

Instructions

Execute VBA code in an open workbook (live Excel only, cannot use with closed files). Code is wrapped in a Sub automatically if needed. MsgBox calls are stripped. Temp modules are cleaned up after execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workbookYesWorkbook name
codeYesVBA code to execute
sheetNoSheet to activate before execution

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kousunh/Excel-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server