|
Bonsai Outliner for Windows > How Do I ... ? > Jump Back from a Link > MS Outlook Example
An example macro is included with the Bonsai installation that demonstrates the ability to launch Bonsai and display a linked item. By placing a button linked to this macro on the Outlook toolbar, and the forms for task and event details, you can quickly jump to the Bonsai outline with the linked item.
Here are the steps to install this example.
Install the macro
| • | Hit Alt+F11 from within MS Outlook to open a MS Visual Basic window. |
| • | Right click on the Project icon in the Project Explorer window and select Import File from the context menu. |
| • | Navigate to the Bonsai installation directory and select "Back2Bonsai.bas". |
| • | If Bonsai was not installed in the default folder under Program Files, then edit the Launch Bonsai function in the module and change the path to the actual installation folder. |
| • | Save the project (click save icon) and close the Visual Basic editor. |
Create a toolbar button
| • | Right-click on the MS Outlook toolbar and select Customize from context menu to display the Customize dialog. |
| • | Select 'Macros' in the Categories list. |
| • | Click and drag the 'DoBonsai' macro from the commands list to the MS Outlook toolbar. |
| • | Before closing the Customize dialog, right-click on the 'DoBonsai' button on the MS Outlook toolbar to display the context menu. |
| • | Find the Name entry on the menu and change the button name to Back2Bonsai. |
| • | Optionally, the icon can be changed using the same context menu. |
| • | Close the Customize dialog. |
The Back2Bonsai button is now configured and ready for use.

Place your cursor on a To Do that contains a Bonsai link tag and click the Back2Bonsai button.
Repeat the procedure used to create the toolbar button on other forms, for example Task Details, where you want to jump to Bonsai.
Note: If you get an error "Macro language support is disabled", you may have the Visual Basic for Application shared features disabled.
Note: MS Outlook 2003 has additional security on the body of a task or event that will cause a security pop up to be displayed. See the script source code for information on the Redemption Library and other ways to work around this message. Otherwise, you can respond Yes to the security dialog.
|