xl to exe converter - xltoexe

9
2/8/13 XL to EXE Converter - XLtoEXE orlando.mvps.org/XLtoEXEMore.asp 1/9 XL TO EXE CONVERTER - XLtoEXE Download Home What's new This utility converts Microsoft® Excel® files from original XL formats (XLS, XLA, XLT, XLAM, XLSM, XLTM, XLSB, XLSX, XLTX) to EXE format (convert XLS to EXE, convert XLA to EXE, convert XLSM to EXE, convert Excel to EXE). Like original XL files, the EXE files created are not independent of Excel, but they allow you to define Excel properties before opening, and improve the portability and functionality of your workbooks with or without macros and without macro alert, transferring EXE file properties to XL files. The conversion, moreover to maintain the original format features, inclusive for editing thru the Excel, adds others functionalities where the autocompression and the control over the Excel highlight. So, by be specialized in Excel and VBA, can be more advantageous than ZIP files, ZIP autoextracts and program installation utilities. See below the EXE format features and then some pictures and applying examples . EXE Format Features: - Any Excel XL file format (*.xls; *.xla; *.xlt; *.xlam; *.xlsm; *.xltm; *.xlsb; *.xlsx; *.xltx) can be converted to EXE; Related to 'Excel Version Options' frame in the UI : - You can set the Excel version to be used as the default installed version, a specific installed version, or a version of an Excel EXE file indicated directly on the disk. (New in version 2.0 of 06/26/11) - When specifying the default Excel installed version to be used, you can limit the allowed versions, for example, if you limit the usable versions to 10 through 14, and the default installed version is version 9, then the EXE will not be opened on this version. (New in version 2.0 of 06/26/11) - If you choose to use a version directly from an Excel EXE file, you can specify the name and the path of the file on the disk or active drive. If you specify only the file name or the name with a partial path, in each execution the XLtoEXE will automatically look for a satisfactory EXE completing the path, and immediately use the first and the closest possible option. (New in version 2.0 of 06/26/11) - You can still allow the user to select an allowed version on the flight, if there is more than one installed, by holding down the Shift key while launching the EXE. The defined configuration is saved in an INI file next to the EXE to be used automatically in future executions, without holding down the Shift key. (New in version 2.0 of 06/26/11) Related to 'Excel Startup Options' frame in the UI : - Can be opened in the Excel without macro alert or with a custom alert (Good to work with known files containing macros using the Excel in medium or high security level). - Can be opened in an exclusive Excel window (exclusive Excel instance); it will refuse, while open, any attempt to share with an unfamiliar workbook, but accepts attached and new workbooks created during its execution. It also accepts workbooks with file names or full names set and passed in a list, as allowed or trusted by the VBA project at runtime (See Ex. 2 ). (Improved in version 2.0 of 06/26/11) - Can be forced the closure of running Excel instances at start up. This is helpful to use the EXE as an installer for a COM add-in. Download Password Manager www.RoboFo… Remembers Passwords. One-Click Form Filling, Seach, and More. 5 Stars!

Upload: sanket-dubey

Post on 14-Apr-2015

383 views

Category:

Documents


14 download

DESCRIPTION

XL to EXE Converter - XLtoEXE

TRANSCRIPT

Page 1: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 1/9

XL TO EXE CONVERTER - XLtoEXE

Download Home What's new This utility converts Microsoft® Excel® files from original XL formats (XLS, XLA,

XLT, XLAM, XLSM, XLTM, XLSB, XLSX, XLTX) to EXE format (convert XLS toEXE, convert XLA to EXE, convert XLSM to EXE, convert Excel to EXE). Likeoriginal XL files, the EXE files created are not independent of Excel, but theyallow you to define Excel properties before opening, and improve the portabilityand functionality of your workbooks with or without macros and without macroalert, transferring EXE file properties to XL files.

The conversion, moreover to maintain the original format features, inclusive forediting thru the Excel, adds others functionalities where the autocompressionand the control over the Excel highlight. So, by be specialized in Excel and VBA,can be more advantageous than ZIP files, ZIP autoextracts and programinstallation utilities. See below the EXE format features and then some picturesand applying examples.

EXE Format Features:

- Any Excel XL file format (*.xls; *.xla; *.xlt; *.xlam; *.xlsm; *.xltm; *.xlsb; *.xlsx;*.xltx) can be converted to EXE;

Related to 'Excel Version Options' frame in the UI:

- You can set the Excel version to be used as the default installed version, aspecific installed version, or a version of an Excel EXE file indicated directly onthe disk. (New in version 2.0 of 06/26/11)

- When specifying the default Excel installed version to be used, you can limitthe allowed versions, for example, if you limit the usable versions to 10 through14, and the default installed version is version 9, then the EXE will not be openedon this version. (New in version 2.0 of 06/26/11)

- If you choose to use a version directly from an Excel EXE file, you can specifythe name and the path of the file on the disk or active drive. If you specify onlythe file name or the name with a partial path, in each execution the XLtoEXE willautomatically look for a satisfactory EXE completing the path, and immediatelyuse the first and the closest possible option. (New in version 2.0 of 06/26/11)

- You can still allow the user to select an allowed version on the flight, if there ismore than one installed, by holding down the Shift key while launching the EXE.The defined configuration is saved in an INI file next to the EXE to be usedautomatically in future executions, without holding down the Shift key. (New inversion 2.0 of 06/26/11)

Related to 'Excel Startup Options' frame in the UI:

- Can be opened in the Excel without macro alert or with a custom alert (Good towork with known files containing macros using the Excel in medium or highsecurity level).

- Can be opened in an exclusive Excel window (exclusive Excel instance); it willrefuse, while open, any attempt to share with an unfamiliar workbook, butaccepts attached and new workbooks created during its execution. It alsoaccepts workbooks with file names or full names set and passed in a list, asallowed or trusted by the VBA project at runtime (See Ex. 2). (Improved in version2.0 of 06/26/11)

- Can be forced the closure of running Excel instances at start up. This is helpfulto use the EXE as an installer for a COM add-in.

DownloadPasswordManager

www.RoboFo…

RemembersPasswords.

One-Click FormFilling, Seach,and More. 5

Stars!

Page 2: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 2/9

- When opened in a separate instance, it can start Excel in Automation mode, orvery Automation mode; Excel will thus run totally clean without XLSTARTs, add-Ins, or COM add-ins. This is better than the /Automation Excel command lineswitch that doesn’t disconnect COM add-ins. However, the disconnection isoptional and, if you disconnect, you can list exceptions by ProgIds or by GUIDs.All the different versions of the same COM add-in have a single ProgId, and theGUID are different for each version, or more precisely for each DLL build.(Improved in version 2.0 of 06/26/11)

- When opened in a separate instance, it can control the Excel window style(maximize, minimize, normal, or hidden). These four last features are good to beused when your workbook is a dictator application.

Related to 'EXE File Open Options' frame in the UI:

- Can show, without text size limit, an alert before opening in the Excel (Good toinstallation alerts, copyright, guidance etc.).

- Can require password-to-open so safe that only can be cracked by attempts(brute force) same knowing the converter source code. Then, if you put apassword and forget it, no-one, neither this utility author, can help you.

- All attached XL files can be opened too at start and controlled as one whole likea 'workbook' of workbooks

- Can avoid access to Visual Basic Editor (VBE) and prevent the design mode.(New in version 2.0 of 06/26/11)

- The handle of a window in Windows is passed to the VBA, so it can watch theEXE and take action when a program fails to run for some reason, for example,misuse of Ctrl+Alt+Del (See Ex. 2). (New in version 2.0 of 06/26/11)

Related to 'EXE File Save Options' frame in the UI:

- Can be read and write (Changes done in an EXE file opening in the Excel towrite are saved in the proper EXE file).

- Can be read-only, very read-only, doesn’t permit ‘Save’ and ‘Save as’ too.

- When saving changes, a series of backups can be created and speciallyindexed to form levels of backups, and therefore levels of restoration, at anamount that you choose and set. You can choose from the least 0 (no backup)to a maximum of 100 or even 101 for indefinable levels, making possible morerestoration levels than when using the XL format that supports one level or none.When you set levels of backups, at each new backup the existing ones areoverwritten so that the most recent backup version is one of lower indexes orlevels, while, if not set levels (101 option), existing backups are never overwrittenand the most recent backups are the larger indexes. (Improved in version 2.0 of06/26/11)

- Changes can be saved to a new XL file, leaving the EXE unaltered (Good to beused like a template).

- Changes can be saved to multiple XL files with an incrementing number (Goodto be used like an invoice template).

- There are four levels of autocompression: none, normal (faster), medium(slower), and high (slower). Normal is equivalent to a normal zip file. This makeslarge files more portable, mainly when they need protection, because protectedfiles in XL format are of low compression. In a test with a simple workbook of 5Mb, the ZIP compressed only 14% and this got 74% because the cryptographyis done after the compression.

- An EXE file open for editing can update (save) itself automatically when closingand also before closing in three other ways. The first happens through the ExcelWorkbook_BeforeSave event when changes are saved by the user in the

HDFCBank™PersonalLoan

HDFCBank.c…

Salary Above15K PM .GetQuick Loan

Approval.CheckYour Eligibility

Now

Ads by Google

Download Excel

Excel 2003

MS Excel

Page 3: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 3/9

converted XL, or an attached XL opens in Excel. The second, looking periodicallyfor changes saved in any type of attached file; the size of the period in minutes tolook for is set when converting, if it set to 0, the program will never look forchanges. The third, by a command activated via the VBA project using thelXLtoEXE_SaveNow variable (See Ex. 2). (New in version 2.0 of 06/26/11)

- An alert that says “Please wait ..." is shown while EXE files are opened, closed,or saved. (New in version 2.0 of 06/26/11)

- You can avoid the original converted EXE file from being renamed. If it isrenamed, it will not accept to open in Excel while its original name is notrestored.

Related to 'Limit Execution' popup frame in the UI:

- You can limit the EXE execution by date range based on the local systemclock or Internet atomic clock (GMT) and/or conditioning to the registry of theinstallation with a serial and key specific to each system or computer. You mustprovide a password so that you (and only you) can possibly execute beyond thedefined limits and also generate serials and get keys to register installations bycommands available in the XLtoEXE interface itself. Serials and keys aregenerated based on your password, then different passwords generate differentserials and keys. Thus, only you or whoever has your password can generatevalid serials and keys to your EXEs. It is a password so safe that it only can becracked by attempts (brute force) same knowing the converter source code.Thus, if you put a password and forget it, no one, not even this utility author, canhelp you. No special access setting is required to limit with based on Internetatomic clock (GMT), the default setting set when you install the Internet browseris sufficient and usually necessary. (New in version 2.0 of 06/26/11)

Related to 'Setting...' popup frame in the UI:

- All the above features can be configured when you convert.

- The conversion can be done thru the utility interface or by command line.

- The command line can contain all of the options, alert text, and file names andpaths to attach. You can generate long and complex command lines from theuser interface and send them to the clipboard to be pasted anywhere, such as inan argument of VB or VBA Shell function or in the Windows Run dialog box.

- The converted EXE file also accepts command line and passes entirely to yourVBA project.

- You can save in own file on disk all the settings set in a conversion to be usedquickly in future conversions. If there is some kind of password in the setting, youwill be asked to create a password to be required to open the file. Thus, only youor whoever has this password can open the setting file. It is a password so safethat it can only be cracked by attempts (brute force) same knowing the convertersource code. Thus, if you put a password and forget it, no one, not even thisutility author, can help you. (New in version 2.0 of 06/26/11)

Related to non-specific frame in the UI:

- The alert at the end of a successful conversion can be silenced with the optionof maintaining (or not maintaining) a backup of the original converted XL. (New inversion 2.0 of 06/26/11)

- One or more text or binary files can be attached, as well as entire folders withall files and the tree of subfolders (Good to be used as installer file). (Improved inversion 2.0 of 06/26/11)

- Some options defined in the conversion can still be changed at runtime via VBAproject using predefined variables that swap information with the VBA project.These variables also make possible XLtoEXE extra features and commands

Page 4: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 4/9

available only through the VBA project. In relation to the VBA project, their valuesor conditions can be read and/or write or read-only. See Ex. 2 how to use each ofthem in your VBA project. In all, XLtoEXE provides 11 predefined variablesdescribed below:

1 - sXLtoEXE_ThisWbPathExe (String, Read-only) - Name of the EXE file onthe disk.

2 - sXLtoEXE_ThisWbNameExe (String, Read-only) - Path where the EXEfile is found on the disk.

3 - lXLtoEXE_hWnd (Long, Somente leitura) - Handle of a window thatXLtoEXE created in Windows specially for the VBA project watches it andtake action when it fails to run for some reason, for example, misuse ofCtrl+Alt+Del.

4 - lXLtoEXE_AutoReopen (Long 1 or 2, Read and Write) - To XLtoEXE autoreopen after all closed, set 1 for normal reopen or 2 for reopen asking privilegeelevation. And, especially, 3 to quit the same way, but not reopen.

5 - lXLtoEXE_WaitReopen (Long, Write) - Wait in seconds to auto reopen.

6 - sXLtoEXE_CmdLineReopen (String, Read and Write) - Command lineargument to be passed to the VBA project when opening or auto reopening.

7 - lXLtoEXE_AvoidAccessVBE (Long 0, 1, or 2, Write) - Set as 1 to avoidaccess to VBE, 2 to allow, and 0 to follow the option set when converting.(New in version 2.0 of 06/26/11)

8 - lXLtoEXE_SaveNow (Long 0 or 1, Write) - Set as 1 to XLtoEXE save thisproject now. This useful when all data is saved in attached files. If the projectis read-only or there is not to save, it will be ignored. (New in version 2.0 of06/26/11)

9 - sXLtoEXE_SaveAsExe (String, Write) - Set a full name for a new EXE filethat will be created from the open EXE with the current changes by still tosave. The current EXE will be closed without the changes and the new one willbe open in its place already due saved. If the project is read-only, it will beignored. (New in version 2.0 of 06/26/11)

10 - sXLtoEXE_SaveCopyAsExe (String, Write) - Set a full name for a newEXE file that will be created from the open EXE with the current changes bystill to save. The current EXE will continue open as it is and the new one willbe closed duly saved with the changes. If the project is read-only, it will beignored. (New in version 2.0 of 06/26/11)

11 - sXLtoEXE_TrustWbNames (String, Write) - List of trusted workbooknames (with or without path) for XLtoEXE allows in exclusive window. Use ';' asseparator. Path will be required on all names if there is at least one pathseparator character '\' on the list. (New in version 2.0 of 06/26/11)

- A converted EXE file that has in your name the text "Instl-", "-instl", "Runas-", or"-runas" in any position and form is always going to start asking for privilegeelevation for Windows user account to administrator level. The EXE file can alsobe restarted automatically via VBA project to ask for elevation, making possibleyour VBA project start and work normally without administrator privileges, butwith power to require elevation if necessary to execute some action or specialfeature (See Ex. 2).

- The EXE file can be closed and scheduled via VBA project to be reopenedautomatically after some time. In addition, a command line argument can be setto execute an action immediately and automatically after reopening (See Ex. 2).

- It provides for the VBA project the exe file properties as name, path, size anddates (See Ex. 2).

Page 5: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 5/9

- You can convert back to XL format using Excel Save As command if not read-only.

- When convert, it creates a backup of the original XL format file withoutoverwriting previous one.

- Files in this format can function as EXE in CD Autorun.

- The conversion only adds about 215 kb which, depending on the file size, canbe regained during autocompression.

- The converter and any converted files are standalone in the presence of theOffice library, no extra library is necessary and neither changes in your Excel orWindows setting.

Download:

Tested in Excel for Windows, versions 97 (See Note), 2000, 2002(XP), 2003,2007, 2010 (32 and 64-bit), and 2013 (32 and 64-bit) in MSI-based and Click-To-Run installations of Office 365™ cloud-based services.

Download the English version here

You also can download from this mirror site

Last update: 02/04/2013 - 286.9kb Freeware based in this License Agreement

See also DBtoEXE for Microsoft Access®, PPtoEXE for Microsoft PowerPoint®,and DOCtoEXE for Microsoft Word.

Pictures:

Search

Page 6: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 6/9

Applying Examples

You can see below three applying examples. The first is related with VBAdevelopers, the second, with Excel interface users and, the last, with AutorunCD:

Page 7: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 7/9

1 – Some VBA developers have your proper utilities in XL to install and uninstall

their add-Ins and COM add-ins totally developed in VBA like all in my site. TheseXLSs can be converted to EXEs to open directly on the Excel. They open withoutmacro alert regardless security level and still carry together the XLA, the DLL andany other necessary file. All in a single and compressed file.

All add-ins and COM add-ins for Excel available on the site have their installersand uninstallers fully programmed in VBA in XLS files that are converted to EXEby XLtoEXE, packaging still other necessary files:

Active Teach Ribbon for Excel®

Popup Spell Number for Excel®

Popup Calendar for Excel®

Popup Calculator for Excel®

Printed Watermark for Excel®

Cell Easy Entry for Excel®, and some others that you can see from a completeindex here.

2 – In the link below, the XLtoEXE was used to convert to EXE a standard Excel

file, Book1.xls, where an Excel user interface made a confidential report withlinks to some pictures files (bmp, gif, jpg etc.) and referring others Excelworkbooks that he/she would like to distribute jointly with Book1.xls withoutembedding in it but that is in a single, compressed, and protected file and with anopening alert.

Downloading this EXE format file and clicking in it, it’ll be open directly on theExcel and you can change anything on it and save in the same way you’d do in aXLS format file:

Book1.exe

Some advantages of the conversion in this example: opening alert, only linksdon’t become the Excel workbook heavy, very well compressed althoughpassword protected, editable with all possible restoration levels, attached filesare editable too, and exclusive Excel instance in maximized window.

Specially for VBA developers, this workbook also contains ModXLtoEXEstandard module with minimal, necessary, and sufficient code for the VBAproject to exchange information with the EXE at runtime. Complete exampleswith code in other modules and command buttons and descriptions in thespreadsheet illustrate how is done the exchange of each one of possibleinformation. See then, via VBA project:

- How get EXE file properties: name, path, size, date-hour, if has administratorprivilege, command-line argument, original xl file name, working temp folder,and Windows handle.

- How close an EXE setting to reopen automatically in some seconds after.

- How close an EXE setting to reopen automatically asking privilege elevationto administrator level on Windows.

- How close an EXE setting to reopen automatically with command lineargument to execute an action immediately and automatically after reopening.

- How allow access to Visual Basic Editor (VBE) and design mode in an EXEthat was converted using the "Avoid access VBE and design mode” option.

- How watch the EXE to take some action when it is no longer running due tosome weird reason as, for example, the misuse of Ctrl+Alt+Del.

- How to Save Now an EXE directly without trigger of Excel

Page 8: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 8/9

Workbook_BeforeSave events.

- How Save As another EXE.

- How Save Copy As another EXE.

- How trust and open a weird XL in an EXE that was converted using the"Exclusive window” option.

3 - Suppose that you want to mount a CD that opens automatically your Excel

file of name MyApp.xla (The extension could be too XLS or XLT). Follow thesethree steps:

3.1 – Use XLtoEXE to converter MyApp.xla to MyApp.EXE defining how you wantthe Excel starting and attaching any necessary file

3.2 - On Windows Notepad, create and save a text file of name AUTORUN.INFwith these two lines:

[autorun]

OPEN=MyApp.EXE

3.3 – Burn the CD with these files on the root:

MyApp.EXE

AUTORUN.INF

Note: Optionally, to display on the Windows Explorer an own icon of yourapplication, when the CD is inserted, add the following line at the AUTORUN.INF:ICON=MyApp.ico . The file MyApp.ico that can be created by an icon applicationlike Microangelo (www.impactsoft.com) must be present too on the CD root.

More information Home

8

Page 9: XL to EXE Converter - XLtoEXE

2/8/13 XL to EXE Converter - XLtoEXE

orlando.mvps.org/XLtoEXEMore.asp 9/9