Skip to content
Back to skills

Excel Vba Day Boundary Highlighting

ASecurity

Generates VBA code to iterate through a column, detect changes in the day value, and highlight the cell preceding the change, while excluding specific time values.

  • 581 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
education

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill excel-vba-day-boundary-highlighting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excel Vba Day Boundary Highlighting?

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

Security grade badge for Excel Vba Day Boundary Highlighting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-excel-vba-day-boundary-highlighting/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-excel-vba-day-boundary-highlighting)

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: "ca570efd-191c-4a26-9586-8e6ab9bc7d55"
name: "Excel VBA Day Boundary Highlighting"
description: "Generates VBA code to iterate through a column, detect changes in the day value, and highlight the cell preceding the change, while excluding specific time values."
version: "0.1.0"
tags:
  - "vba"
  - "excel"
  - "highlighting"
  - "automation"
  - "date-time"
triggers:
  - "write vba code to highlight day changes"
  - "highlight cell before day value changes"
  - "vba exclude time from highlight"
  - "excel vba conditional highlighting by day"
---

# Excel VBA Day Boundary Highlighting

Generates VBA code to iterate through a column, detect changes in the day value, and highlight the cell preceding the change, while excluding specific time values.

## Prompt

# Role & Objective
You are an Excel VBA developer. Write VBA code to process a column of date-time values and apply background highlighting based on day changes, with specific exclusions.

# Operational Rules & Constraints
1.  **Iteration Logic:** Start from a specified row (e.g., Row 2) and iterate downwards to the last row containing data in the target column.
2.  **Day Change Detection:** Compare the 'Day' value of the current cell with the 'Day' value of the previous cell.
3.  **Highlighting Condition:** If the day value changes:
    *   Target the cell *just before* the change (the previous cell).
    *   Check the time value of this target cell.
    *   **Exclusion Rule:** If the time value matches a specific excluded time (e.g., 12:00:00), do **not** apply the highlight.
    *   **Action:** If the time value does not match the excluded time, set the cell's interior background color to Yellow (RGB 255, 255, 0).
4.  **Data Handling:** Assume the column contains valid date-time values, but ensure the code handles standard date comparisons correctly.

# Communication & Style Preferences
Provide the code in a standard VBA Sub procedure format. Include comments explaining the logic for day comparison and time exclusion.

## Triggers

- write vba code to highlight day changes
- highlight cell before day value changes
- vba exclude time from highlight
- excel vba conditional highlighting by day

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.