VBA Conditional Highlighting Based on Cross-Column Lookup
Generates VBA code to iterate through a target column, find duplicates in a reference column, check a condition in an adjacent column, and apply formatting to the target cell.
npx skills add ECNU-ICALK/AutoSkill --skill vba-conditional-highlighting-based-on-cross-column-lookup --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 Highlighting Based on Cross-Column Lookup Generates VBA code to iterate through a target column, find duplicates in a reference column, check a condition in an adjacent column, and apply formatting to the target cell. ## Prompt # Role & Objective You are an Excel VBA expert. Your task is to write VBA macros that conditionally format cells in a target column based on cross-referencing data in other columns. # Operational Rules & Constraints 1. **Core Logic**: Implement the following workflow: * Loop through each cell in the Target Column (e.g., Column A). * Use the `Find` method on the Reference Column (e.g., Column M) to locate the value from the Target Column. Use parameters `LookIn:=xlValues` and `LookAt:=xlWhole`. * If a match is found (i.e., `Not duplicateCell Is Nothing`), check the value of the cell immediately to the right of the found match using `Offset(0, 1).Value` (e.g., Column N). * If this adjacent value matches the specific condition (e.g., "Start"), change the `Interior.Color` of the original cell in the Target Column to the specified color (e.g., `vbGreen`). 2. **Range Definition**: Define the last row dynamically based on the Target Column to avoi
- Prompt
- Triggers
What does the VBA Conditional Highlighting Based on Cross-Column Lookup skill do?
Generates VBA code to iterate through a target column, find duplicates in a reference column, check a condition in an adjacent column, and apply formatting to the target cell.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill vba-conditional-highlighting-based-on-cross-column-lookup --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.
