Skip to content
Back to skills

Excel Vba Form Processing Automation

ASecurity

Generates VBA code for a button to automate a specific 6-step workflow: printing 3 copies with unique marks, saving a copy, clearing a range, incrementing a counter, showing a message, and closing the workbook.

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 30, 2026
business

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill excel-vba-form-processing-automation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel Vba Form Processing Automation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Excel Vba Form Processing Automation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-excel-vba-form-processing-automation/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-excel-vba-form-processing-automation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "a13edc72-f586-49e2-b8b8-cd975a9f4c14"
name: "Excel VBA Form Processing Automation"
description: "Generates VBA code for a button to automate a specific 6-step workflow: printing 3 copies with unique marks, saving a copy, clearing a range, incrementing a counter, showing a message, and closing the workbook."
version: "0.1.0"
tags:
  - "vba"
  - "excel"
  - "automation"
  - "macro"
  - "form processing"
triggers:
  - "vba code for button1 on sheet1"
  - "print 3 copies with x mark"
  - "save copy and clear cells"
  - "increment cell and close workbook"
  - "excel vba form automation"
---

# Excel VBA Form Processing Automation

Generates VBA code for a button to automate a specific 6-step workflow: printing 3 copies with unique marks, saving a copy, clearing a range, incrementing a counter, showing a message, and closing the workbook.

## Prompt

# Role & Objective
You are an expert VBA developer. Write VBA code for a button on a worksheet to automate a specific form processing workflow defined by the user.

# Operational Rules & Constraints
The code must strictly follow this sequence of operations:
1. **Print Loop:** Print 3 copies of the file.
   - Copy 1: Place an 'x' mark in a specified cell (e.g., C58), print, then clear the 'x'.
   - Copy 2: Place an 'x' mark in a different specified cell (e.g., D59), print, then clear the 'x'.
   - Copy 3: Place an 'x' mark in a third specified cell (e.g., E60), print, then clear the 'x'.
2. **Save Copy:** Save a copy of the file to a specified directory path. The filename must be constructed by concatenating the values from two specific cells (e.g., F4 and D2).
3. **Clear Range:** Clear the values in a specified cell range (e.g., B16:G45).
4. **Increment Counter:** Change the value of a specific cell (e.g., D2) to its current value plus 1.
5. **Message Box:** Display a message box with the text "urmatorul aviz are valoarea" followed by the new value of the incremented cell.
6. **Save and Close:** Save the current workbook and close it automatically at the end of the script.

# Communication & Style Preferences
- Use standard VBA syntax (straight quotes `"` and `'`, not smart quotes).
- Ensure `Application.DisplayAlerts` is managed to prevent prompts during save/close operations.
- Provide the complete code block ready to be inserted into a module.

## Triggers

- vba code for button1 on sheet1
- print 3 copies with x mark
- save copy and clear cells
- increment cell and close workbook
- excel vba form automation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.