| 1 | |
| 2 | = ExcelFlowExpand = |
| 3 | |
| 4 | ExcelFlowExpand is a TOL package that provides an Excel add-in to change the dating for time series of flow type. |
| 5 | |
| 6 | This add-in uses TOL (in background) via the [wiki:Software#TOLandVBA vbtol library] (vbtol.dll) and therefore it requires a TOL installation. |
| 7 | |
| 8 | == Add-in Installation == |
| 9 | |
| 10 | For using this add-in, there are two software requirements: |
| 11 | |
| 12 | * Provide an Excel installation. Version 2007 (v12.0) onwards. |
| 13 | * Install TOL (if you have not already done so). See [wiki:Download] and [wiki:Installation]. |
| 14 | |
| 15 | Then, the add-in installation needs of the following steps: |
| 16 | |
| 17 | * Install the package ExcelFlowExpand. |
| 18 | * Copy the add-in (XLAM file) to an Excel add-in folder. |
| 19 | * Activate the add-in in Excel. |
| 20 | * Create an environment variable indicating where is TOL installed. |
| 21 | |
| 22 | These steps can be done in two ways: manually or running a TOL code. |
| 23 | |
| 24 | === The steps via TOL === |
| 25 | |
| 26 | {{{ |
| 27 | #!cpp |
| 28 | // Install the package ExcelFlowExpand. It requires a internet connection. |
| 29 | #Require ExcelFlowExpand; |
| 30 | |
| 31 | // Copy the add-in (XLAM file) to the user default add-in folder. |
| 32 | Real ExcelFlowExpand::Install(?); |
| 33 | |
| 34 | // Activate the add-in. |
| 35 | Real ExcelFlowExpand::Activate(?); |
| 36 | |
| 37 | // Write the environment variable VBTOL_PATH with the local value of Text TOLSH_PATH. |
| 38 | Real ExcelFlowExpand::SetCurrentAsVBTOL(?); |
| 39 | }}} |
| 40 | |
| 41 | === The steps manually === |
| 42 | |
| 43 | ==== Install the package ExcelFlowExpand. ==== |
| 44 | |
| 45 | The package can be install as usual anyway: |
| 46 | {{{ |
| 47 | #Require ExcelFlowExpand; |
| 48 | }}} |
| 49 | |
| 50 | Otherwise, download the zip file of the package: [https://www.tol-project.org/packages/OfficialTolArchiveNetwork/repository.php?action=download&format=attachment&tol_package_version=4&package=ExcelFlowExpand ExcelFlowExpand] and unzip it in the TOL Package default folder: |
| 51 | |
| 52 | * TOL Package folder: [[BR]] |
| 53 | {{{%APPDATA%\tol\TolPackage.4\Client}}} [[BR]] |
| 54 | (version numbers may be different) |
| 55 | |
| 56 | After unzipping, check the resulting add-in path: [[BR]] |
| 57 | {{{%APPDATA%\tol\TolPackage.4\Client\ExcelFlowExpand.1.2\XLA}}} [[BR]] |
| 58 | (version numbers may be different) |
| 59 | |
| 60 | ==== Copy the add-in to an Excel add-in folder ==== |
| 61 | |
| 62 | Copy the add-in (XLAM file) to an Excel add-in folder. |
| 63 | |
| 64 | The add-in can be found at the package folder: |
| 65 | |
| 66 | * Add-in source folder: [[BR]] |
| 67 | {{{%APPDATA%\tol\TolPackage.4\Client\ExcelFlowExpand.1.2\XLA}}} [[BR]] |
| 68 | (version numbers may be different). |
| 69 | |
| 70 | The destination folder can be the user default add-in folder: |
| 71 | |
| 72 | * Add-in target folder: {{{%APPDATA%\Microsoft\AddIns}}} [[BR]] |
| 73 | or {{{%APPDATA%\Microsoft\Complementos}}} in a spanish Windows. [[BR]] |
| 74 | For more details, you can read: [https://support.microsoft.com/en-us/kb/810789 Locations for Excel Add-in Programs] |
| 75 | |
| 76 | ==== Activate the add-in ==== |
| 77 | |
| 78 | The add-in activation can be done as usual. |
| 79 | |
| 80 | These steps are: |
| 81 | |
| 82 | * Start Excel, and then on the Tools menu, click Add-Ins. |
| 83 | |
| 84 | * Then, in the Manage box, click Excel Add-ins, and then click Go. The Add-Ins dialog box appears. |
| 85 | |
| 86 | * In the Add-Ins available box, select the check box next to the add-in that you want to activate, and then click OK. |
| 87 | |
| 88 | For more details, you can read: [https://support.office.com/en-us/article/Add-or-remove-add-ins-0af570c4-5cf3-4fa9-9b88-403625a0b460 Add-or-remove-add-ins] |
| 89 | |
| 90 | ==== Write the environment variable VBTOL_PATH ==== |
| 91 | |
| 92 | For helping the add-in to find the TOL installation, an environment variable named {{{VBTOL_PATH}}} should be created. |
| 93 | |
| 94 | This environment variable should contain the 'bin' folder of the TOL installation. |
| 95 | |
| 96 | * TOL bin folder: {{{%PROGRAMFILES%\Tol-Project\tol-gnu-v3.3\bin}}} [[BR]] |
| 97 | (version numbers may be different). [[BR]] |
| 98 | In Windows 64-bits, probably {{{%PROGRAMFILES(x86)%}}} should be used instead {{{%PROGRAMFILES%}}}. |
| 99 | |
| 100 | The TOL bin folder can also be readed from TOL variable: {{{Text TOLSH_PATH;}}}. |
| 101 | |
| 102 | The environment variable creation can be done as usual. We recommend to create an user environment variable. |
| 103 | |
| 104 | For example, you can do it executing in the Windows command line: |
| 105 | {{{ |
| 106 | setx VBTOL_PATH %PROGRAMFILES%\Tol-Project\tol-gnu-v3.3\bin |
| 107 | }}} |
| 108 | Change the path with your own. |
| 109 | |
| 110 | |
| 111 | |
| 112 | |