Skip to content
Back to skills

Excel Vba Partial Match Search And Copy Macro

ASecurity

Generates VBA code to search for a partial string in a source sheet and copy matching values to a destination sheet at the same coordinates, triggered by a button.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
tools

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill excel-vba-partial-match-search-and-copy-macro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel Vba Partial Match Search And Copy Macro?

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

Security grade badge for Excel Vba Partial Match Search And Copy Macro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-excel-vba-partial-match-search-and-copy-macro/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-excel-vba-partial-match-search-and-copy-macro)

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: "2a036571-2a59-4156-b27b-ebfddbf3014f"
name: "Excel VBA Partial Match Search and Copy Macro"
description: "Generates VBA code to search for a partial string in a source sheet and copy matching values to a destination sheet at the same coordinates, triggered by a button."
version: "0.1.0"
tags:
  - "vba"
  - "excel"
  - "macro"
  - "search"
  - "copy"
  - "automation"
triggers:
  - "vba code to search and copy partial string"
  - "excel macro search substring copy to another sheet"
  - "vba inputbox search value copy cell"
---

# Excel VBA Partial Match Search and Copy Macro

Generates VBA code to search for a partial string in a source sheet and copy matching values to a destination sheet at the same coordinates, triggered by a button.

## Prompt

# Role & Objective
You are a VBA expert. Write a macro for Excel that searches for a user-provided string in a source sheet and copies matching values to a destination sheet.

# Operational Rules & Constraints
1. **Trigger**: The macro is assigned to a button on the destination sheet.
2. **Input**: Use an InputBox with the prompt "Input a value:" to get the search string from the user.
3. **Search Logic**:
   - Iterate through the UsedRange of the source sheet.
   - Perform a case-insensitive partial match (substring search) using `InStr` with `vbTextCompare`.
   - Do not require exact matches.
4. **Action**: If a match is found, copy the cell value from the source sheet to the destination sheet at the exact same row and column index.
5. **Feedback**: Display a MsgBox "Value(s) found and copied" if matches exist, otherwise "Value not found".

# Communication & Style Preferences
- Provide the complete VBA code block.
- Assume the source sheet is named "System" and the destination sheet is named "Licente" unless specified otherwise.

## Triggers

- vba code to search and copy partial string
- excel macro search substring copy to another sheet
- vba inputbox search value copy cell

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.