Skip to content

Commit

Permalink
Add supporting files and information
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mattpalermo committed Dec 31, 2017
1 parent 913f356 commit 64ca63e
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*.{bas,cls,frm}]
indent_style = space
indent_size = 4
end_of_line = crlf

[CodeExport.config.json]
indent_style = tab
end_of_line = crlf
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# CRLF -> LF by default, but not for modules or classes (especially classes)
* text=auto
*.bas text eol=crlf
*.cls text eol=crlf
*.frm text eol=crlf
CodeExport.config.json text eol=crlf
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Excel temporary files
~*

# Build files
*.xlam
*.xla
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- No changes documented yet

[0.1.0]: https://github.com/mattpalermo/Excel-Autofit/releases/tag/v0.1.0
5 changes: 5 additions & 0 deletions CodeExport.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Module Paths": {
"Autofit": "Autofit.bas"
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Matthew Palermo
Copyright (c) 2017 James Furnell, Matthew Palermo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
66 changes: 64 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,64 @@
# Excel-Autofit
Autofit merged cells with this Excel add-in
# Excel Autofit

Autofit merged cells with this Excel add-in.

The autofit function built into *Microsoft Excel* is very handy but it doesn't
work on merged cells! This can be frustrating. This add-in will provide an
alternative autofit function which will autofit all selected cells, including
merged cells.

Compatible with Windows and Mac.

## Download

[Autofit.xlam]() (version 0.1.0)

## Instructions

The *Excel Autofit* add-in will add a new button labelled *Autofit row height*
in the *Home* menu of Excel. First select the cells you
want to autofit and then press the button. If there is a lot of autofitting to
do, it may take some time. Watch the status bar for a progress counter. It is
usually found at the bottom left of the Excel window.

![New button added to Excel menu](new-button.png)

**Important:** Using the autofit button will erase your undo history.

**Note:** The autofit doesn't work properly on merged cells spanning multiple
rows. See the *Helping out* section to help fix this.

## Support

You can submit questions, requests and bug reports to the
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues).
Github pull requests are also welcome.

## Helping out

There are a few improvements that could still be made to the add-in. See the
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues) for known
problems. Github pull requests are welcome, otherwise get in contact via the
[issues list](https://github.com/mattpalermo/Excel-Autofit/issues) or email at
[[email protected]](mailto:[email protected]).

If you plan to hack on the code, I have used the
[VBA-Import-Export](https://github.com/mattpalermo/VBA-Import-Export) add-in to
simplifying importing and exporting the VBA code. Feel free to try it out.
Manually importing and exporting will work as well so don't fret over it if you
don't want to use it.

## Authors and Attributions

* **James Furnell** - Commissioned the creation of *Excel Autofit*
* **Matthew Palermo** - Author

* **[Marcus Small](http://www.thesmallman.com/autofit-merged-cells/)** - His
*autofit merged cells* code shows how to solve the Autofit problem and was
used as a reference to create *Excel Autofit*.

## See also

* [ASAP Utilities for Excel](http://www.asap-utilities.com/) - A commercial
add-in which includes the same functionality and *much* more. I recommended
trying this add-in as well if you are using Windows (doesn't work on Mac).
Binary file added Test.xlsx
Binary file not shown.
Binary file added new-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64ca63e

Please sign in to comment.