Spreadsheets
Automate the spreadsheet work you're sick of doing by hand.
Describe the repetitive task. We write the VBA macro or Apps Script that does it. Covers Excel, Google Sheets, Docs, Gmail, Drive, and Calendar automation.
Used by 99,000+ analysts and admins
Try it
Free to try. No credit card. 5 generations on us.
What you'll get
A real output for a real prompt.
Script Generator
Describe the script you need
Need inspiration? Try one of these prompts:
Script Type
Action
Results
Most people find their way to VBA or Apps Script the same way: they realize they've done the same 20-step thing in a spreadsheet three weeks in a row and something breaks in them. An hour later they're on Stack Overflow trying to understand why their For Eachloop won't iterate.
This tool skips that hour. Describe what you want automated. Get a macro or script that does it.
VBA (Excel, Word, Outlook)
Writing macros for Excel mostly. Loops through ranges, sheets, or workbooks. Conditional formatting en masse. Building pivot tables programmatically. Importing from text files. Sending emails from Excel through Outlook. Custom functions (UDFs) when the built-in ones can't do what you need.
The generated code includes the Sub declaration, variable declarations with Dim, error handling where it matters, and comments explaining the non-obvious parts. Paste it into the VBA editor (Alt+F11), hit F5, done.
Google Apps Script (Workspace)
Apps Script covers more ground because it touches the whole Workspace: Sheets, Docs, Gmail, Drive, Calendar, Forms. Common asks:
Time-triggered automations (run this every Monday at 9am). Send a templated email when a row hits a certain status. Copy data between sheets. Build a PDF from a Google Doc and email it. Sync a calendar to a sheet or vice versa. Pull Gmail data into a sheet for reporting.
We generate the code plus the setup steps. Apps Script has its own authorization flow and triggers panel that trips people up. We'll tell you where to click.
Which one do I want
If your automation lives entirely inside one Excel file, VBA. If it touches Gmail, Drive, Calendar, or other Google services, Apps Script. If it needs to run on a schedule without you opening anything, Apps Script (VBA needs Excel open, Apps Script runs on Google's servers).
A limitation worth naming
Generated macros and scripts should be reviewed before you run them on real data. Not because we expect bugs (we don't), but because automations touching files are higher-stakes than formulas. Test on a copy. Always.
Common questions.
Guides & tutorials.
In-depth VBA & Apps Script walkthroughs from our library — the how and the why behind what this tool generates.
Getting Started & Macros
- Excel VBA Tutorial
- How to Create a Macro in Excel
- Macro Recorder in Excel
- Use Relative References in Excel VBA
- Excel Macro Comments (Easy VBA)
- Excel Macro Comments with VBA
+5 more guides
Variables, Procedures & Functions
- Variables in Excel VBA
- Life of Variables in Excel VBA
- Variable Scope in Excel VBA
- Option Explicit in Excel VBA
- Function and Sub in Excel VBA
- ByRef and ByVal in Excel VBA
+4 more guides
Arrays
Loops & Control Flow
- For Loop in Excel VBA
- Do Until Loop in Excel VBA
- Step Keyword in Excel VBA (Easy For Loop)
- Loop through Defined Range in Excel VBA (For Each Cell in Range)
- Loop through Entire Column in Excel VBA
- If Then Statement in Excel VBA
+4 more guides
Ranges & Cells
- Range Object in Excel VBA
- CurrentRegion Property in Excel VBA
- Offset Property in Excel VBA
- Resize Property in Excel VBA
- Union and Intersect Methods in Excel VBA
- Areas Collection in Excel VBA
+6 more guides
Workbooks, Files & Application
- Application Object in Excel VBA
- Workbook and Worksheet Object in Excel VBA
- Close and Open Workbooks in Excel VBA
- Loop through Books and Sheets in Excel VBA
- Import Sheets using Excel VBA
- Path and FullName Property in Excel VBA
+5 more guides
UserForms & Dialogs
- Userform in Excel VBA
- Userform and Ranges in Excel VBA
- Userform with Multiple Pages in Excel VBA
- Interactive Userform in Excel VBA
- InputBox Function in Excel VBA
- MsgBox in Excel VBA (Easy Message Boxes)
+1 more guides
Form Controls
- Combo Box in Excel VBA
- Multicolumn Combo Box in Excel VBA
- Dependent Combo Boxes in Excel VBA
- List Box in Excel VBA
- Multiple List Box Selections in Excel VBA
- Check Box in Excel VBA
+6 more guides
Text & String Functions
Dates & Time
Formatting, Colors & Events
- Font Color in Excel VBA
- Cell Background Colors in Excel VBA
- Sum by Color in Excel VBA
- Highlight Active Cell in Excel VBA
- Tasks on Schedule in Excel VBA
- Events in Excel VBA
+1 more guides