https://github.com/spert/excel-vba-chart-formatter
The VBA code makes Excel charts pretty. Formatted charts are suitable for publications and presentations
https://github.com/spert/excel-vba-chart-formatter
Last synced: 3 months ago
JSON representation
The VBA code makes Excel charts pretty. Formatted charts are suitable for publications and presentations
- Host: GitHub
- URL: https://github.com/spert/excel-vba-chart-formatter
- Owner: spert
- Created: 2021-12-29T14:26:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T11:01:56.000Z (about 1 year ago)
- Last Synced: 2024-08-25T12:20:59.908Z (about 1 year ago)
- Language: VBA
- Size: 3.41 MB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - spert/excel-vba-chart-formatter - The VBA code makes Excel charts pretty. Formatted charts are suitable for publications and presentations (VBA)
README
# Excel VBA Chart Formatter
The VBA code in this repository helps make Excel charts visually appealing—ideal for publications and presentations.
---
## Overview
Preparing Excel charts for regular publications or presentations can be tedious and time-consuming. Spreadsheets often contain raw data and calculations that are irrelevant to colleagues or editors. This VBA tool automates the routine editorial process of chart formatting.
The program:
- Copies the data from any selected Excel chart to a new worksheet
- Applies consistent formatting automatically
- Allows the creation of one or two chart copies (e.g., for multilingual use)
- Offers two size options: small (e.g., for print) or large (presentation-ready)
- Supports different title placements: inside a text box, as a standard chart title, or with no title
> ⚠️ **Note:** This tool is designed to prettify **simple chart types** (e.g., _line_ and _column_ charts). It may not work correctly with **complex chart types** such as _pie charts_, _radar charts_, or _scatter plots_.
---
## Usage
1. **Activate the chart**
Click once on the surface of the Excel chart you want to prettify.
2. **Click 'Format chart'**
Go to the **Add-ins** menu bar in Excel and click the **Format chart** button.

3. **Accept trust prompts**
Accept any messages related to macro or trust settings.
4. **Customize formatting**
A user form will open. Choose your preferred formatting options.

5. **Click 'Execute'**
Press the **Execute** button to start formatting.
6. **View the output**
A new worksheet will be created, containing:
- The formatted chart (or two copies if selected)
- The cleaned and copied chart data

---
## Installation
1. Download the Excel add-in file (`ChartFormatter.xlam`) from this repository.
2. Open any Excel workbook.
3. Double-click the `ChartFormatter.xlam` file located in the `Install` folder to load the add-in.
---
## Technical Info
- The VBA code is compiled into a `.xlam` Excel Add-in file.
- Object-oriented programming principles are applied using VBA **classes**, **types**, and **collections**.
- Tested on **Excel 2016 Professional Plus**.
- Licensed under **GPLv3**. Please review the license terms before modifying or distributing the source code.
---