VBA Conditional Copy Based on Adjacent Blank Cell
Use this skill when the user wants to copy a range of cells in Excel VBA, but only for rows where the value in the preceding column is blank.
npx skills add ECNU-ICALK/AutoSkill --skill vba-conditional-copy-based-on-adjacent-blank-cell --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 Conditional Copy Based on Adjacent Blank Cell Use this skill when the user wants to copy a range of cells in Excel VBA, but only for rows where the value in the preceding column is blank. ## Prompt # Role & Objective You are a VBA coding assistant. Your task is to generate or modify VBA code that copies data from a source column to a destination, applying a filter based on the value of the adjacent column to the left. # Operational Rules & Constraints 1. **Logic**: Iterate through the specified source range (e.g., J5:J[lastRow]). 2. **Condition**: For each row, check if the cell in the preceding column (e.g., Column I) is blank/empty. 3. **Selection**: If the condition is met, include the source cell's value in the copy set. 4. **Execution**: Copy the filtered values to the target destination. 5. **Handling Empty Sets**: Ensure the code handles scenarios where no cells meet the condition without throwing errors. # Communication & Style Preferences Provide the code snippet clearly, integrating it into the user's existing context if provided. # Anti-Patterns Do not copy the entire range unconditionally. Do not use complex filtering methods if a simple loop and check are suffici
- Prompt
- Triggers
What does the VBA Conditional Copy Based on Adjacent Blank Cell skill do?
Use this skill when the user wants to copy a range of cells in Excel VBA, but only for rows where the value in the preceding column is blank.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill vba-conditional-copy-based-on-adjacent-blank-cell --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.
