https://github.com/schiste/excel-cell-formating
A VB macro that automatically clean up Excels to apply specific formating to cells. Green for constants (inputs) and Blue for Cells referecing other tabs.
https://github.com/schiste/excel-cell-formating
Last synced: 6 days ago
JSON representation
A VB macro that automatically clean up Excels to apply specific formating to cells. Green for constants (inputs) and Blue for Cells referecing other tabs.
- Host: GitHub
- URL: https://github.com/schiste/excel-cell-formating
- Owner: schiste
- License: cc0-1.0
- Created: 2025-07-04T15:32:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-04T15:38:48.000Z (12 months ago)
- Last Synced: 2025-07-04T16:50:11.285Z (12 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📘 FormatCellsByCriteriaWithProgress
An optimized Excel VBA macro to format cells based on content with a built‑in progress indicator.
---
## 🎯 Overview
- Clears all background colors.
- Applies light green `#EBF1DE` to numeric constants.
- Applies light blue `#B8CCE4` to formulas referencing other sheets **only if the result is numeric**.
- Displays a dynamic progress bar in Excel’s Status Bar during execution.
---
## ⚙️ Requirements
- Excel with VBA support (Windows or macOS).
- No external dependencies.
---
## 🚀 Installation
1. Open your `.xlsm` workbook.
2. Press `⌘⌥F11` to open the VBA editor (or `Alt + F11` on Windows).
3. Insert a new module.
4. Paste the `FormatCellsByCriteriaWithProgress` macro into the module.
5. Save the workbook as an **Excel Macro‑Enabled Workbook (`.xlsm`)**.
---
## ▶️ Usage
1. Open the workbook.
2. Press `⌘ + F8` (or `Alt + F8` on Windows).
3. Select **FormatCellsByCriteriaWithProgress** and click **Run**.
4. Watch the live progress bar in Excel’s lower-left status bar.
---
## 📘 Code Sample
```vb
Sub FormatCellsByCriteriaWithProgress()
' [Optimized code with performance settings, progress bar, and selective formatting]
End Sub