Skip to content

Commit 64ca63e

Browse files
committed
Add supporting files and information
LICENSE updated, README written, CHANGELOG started. Added configuration for VBA-Import-Export and supporting files. Added git and editor configurations. Added a test file designed to test various different autofit senarios. Autofit passed most tests except for multirow test as expected.
1 parent 913f356 commit 64ca63e

File tree

9 files changed

+106
-3
lines changed

9 files changed

+106
-3
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*.{bas,cls,frm}]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = crlf
10+
11+
[CodeExport.config.json]
12+
indent_style = tab
13+
end_of_line = crlf

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# CRLF -> LF by default, but not for modules or classes (especially classes)
2+
* text=auto
3+
*.bas text eol=crlf
4+
*.cls text eol=crlf
5+
*.frm text eol=crlf
6+
CodeExport.config.json text eol=crlf

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Excel temporary files
2+
~*
3+
4+
# Build files
5+
*.xlam
6+
*.xla

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [Unreleased]
8+
9+
- No changes documented yet
10+
11+
[0.1.0]: https://github.com/mattpalermo/Excel-Autofit/releases/tag/v0.1.0

CodeExport.config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Module Paths": {
3+
"Autofit": "Autofit.bas"
4+
}
5+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Matthew Palermo
3+
Copyright (c) 2017 James Furnell, Matthew Palermo
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,64 @@
1-
# Excel-Autofit
2-
Autofit merged cells with this Excel add-in
1+
# Excel Autofit
2+
3+
Autofit merged cells with this Excel add-in.
4+
5+
The autofit function built into *Microsoft Excel* is very handy but it doesn't
6+
work on merged cells! This can be frustrating. This add-in will provide an
7+
alternative autofit function which will autofit all selected cells, including
8+
merged cells.
9+
10+
Compatible with Windows and Mac.
11+
12+
## Download
13+
14+
[Autofit.xlam]() (version 0.1.0)
15+
16+
## Instructions
17+
18+
The *Excel Autofit* add-in will add a new button labelled *Autofit row height*
19+
in the *Home* menu of Excel. First select the cells you
20+
want to autofit and then press the button. If there is a lot of autofitting to
21+
do, it may take some time. Watch the status bar for a progress counter. It is
22+
usually found at the bottom left of the Excel window.
23+
24+
![New button added to Excel menu](new-button.png)
25+
26+
**Important:** Using the autofit button will erase your undo history.
27+
28+
**Note:** The autofit doesn't work properly on merged cells spanning multiple
29+
rows. See the *Helping out* section to help fix this.
30+
31+
## Support
32+
33+
You can submit questions, requests and bug reports to the
34+
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues).
35+
Github pull requests are also welcome.
36+
37+
## Helping out
38+
39+
There are a few improvements that could still be made to the add-in. See the
40+
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues) for known
41+
problems. Github pull requests are welcome, otherwise get in contact via the
42+
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues) or email at
43+
[matt.r.palermo@gmail.com](mailto:matt.r.palermo@gmail.com).
44+
45+
If you plan to hack on the code, I have used the
46+
[VBA-Import-Export](https://github.com/mattpalermo/VBA-Import-Export) add-in to
47+
simplifying importing and exporting the VBA code. Feel free to try it out.
48+
Manually importing and exporting will work as well so don't fret over it if you
49+
don't want to use it.
50+
51+
## Authors and Attributions
52+
53+
* **James Furnell** - Commissioned the creation of *Excel Autofit*
54+
* **Matthew Palermo** - Author
55+
56+
* **[Marcus Small](http://www.thesmallman.com/autofit-merged-cells/)** - His
57+
*autofit merged cells* code shows how to solve the Autofit problem and was
58+
used as a reference to create *Excel Autofit*.
59+
60+
## See also
61+
62+
* [ASAP Utilities for Excel](http://www.asap-utilities.com/) - A commercial
63+
add-in which includes the same functionality and *much* more. I recommended
64+
trying this add-in as well if you are using Windows (doesn't work on Mac).

Test.xlsx

8.42 KB
Binary file not shown.

new-button.png

3.36 KB
Loading

0 commit comments

Comments
 (0)