Created
January 8, 2015 16:10
-
-
Save craibuc/41974122c555fdb07ee6 to your computer and use it in GitHub Desktop.
Export all Excel sheets (tabs) as individual HTML documents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set theSource to choose file with prompt "Choose file:" default location (path to desktop) of type {"XLS", "XLSX"} | |
set theDestination to (choose folder with prompt "Choose destination folder:" default location path to desktop) | |
set thePath to (theDestination as text) & "output.HTML" | |
tell application "Microsoft Excel" | |
activate | |
open theSource | |
tell active workbook | |
save as active sheet filename thePath file format HTML file format | |
end tell | |
quit saving no | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment