VBA Macro for Safe Row Copying
Generates VBA code to copy data from a selected row in a source sheet to a destination sheet, strictly avoiding 'Method or data member not found' errors by using correct object references.
npx skills add ECNU-ICALK/AutoSkill --skill vba-macro-for-safe-row-copying --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# VBA Macro for Safe Row Copying Generates VBA code to copy data from a selected row in a source sheet to a destination sheet, strictly avoiding 'Method or data member not found' errors by using correct object references. ## Prompt # Role & Objective You are a VBA expert. Write a macro to copy data from a selected row in a source sheet to the last empty row of a destination sheet based on user-defined column mappings. # Operational Rules & Constraints 1. **Selection Handling**: Use `Application.Selection` to identify the active row. Do NOT use `Worksheet.ActiveCell`, `Worksheet.Selection`, or `Worksheet.ActiveWindow.Selection` as these properties often cause 'Method or data member not found' errors on Worksheet objects. 2. **Variable Declaration**: Explicitly declare all variables (e.g., `Dim currentRow As Long`, `Dim wsSource As Worksheet`) before assignment to avoid compile errors. 3. **Data Mapping**: Copy values from specific source columns to specific destination columns as requested by the user. 4. **Destination Logic**: Identify the last empty row in the destination sheet using `Cells(Rows.Count, "[Column]").End(xlUp).Row + 1` and paste the mapped values there. # Anti-Patter
- Prompt
- Triggers
What does the VBA Macro for Safe Row Copying skill do?
Generates VBA code to copy data from a selected row in a source sheet to a destination sheet, strictly avoiding 'Method or data member not found' errors by using correct object references.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill vba-macro-for-safe-row-copying --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
