Any Excel Workbook can be converted to an add-in. The steps you need to follow to create an add-in are very precise, and may seem a bit overwhelming (particularly the first couple of times you do it). To create a protected add-in file, follow these steps:
- Load the workbook that is destined to become your add-in.
- Start the Visual Basic Editor by choosing Macro from the Tools menu, then choosing Visual Basic Editor.
- At the very top of the Project window, select the bold entry that declares the name of the VBA project that is open.
- Choose the Properties option from the Tools menu. This displays the Project Properties Dialog Box
- Make sure the Protection tab is selected. (Click here to see a related figure.)
- Make sure the Lock Project For Viewing check box is selected.
- Enter a password in both fields at the bottom of the dialog box.
- Click on OK. The dialog box closes.
- Close the Visual Basic Editor and return to the Excel workbook.
- Choose Properties from the File menu. This displays the Properties dialog box for your workbook.
- Make sure the Summary tab is displayed. (Click here to see a related figure.)
- Make sure the Title field is filled in. What you enter here will appear in the Add-Ins dialog box used by Excel.
- Make sure the Comments field is filled in. What you enter here will appear in the description area of the Add-Ins dialog box used by Excel
- Click on the OK button to close the dialog box.
- Choose Save As from the File menu. This displays the Save As dialog box.
- Using the Save As Type pull-down list, specify a file type of Excel Add-In (*.xla).
- Specify a name for your add-in file in the File Name field.
- Click on Save. Your add-in file is created.
- Close the workbook you just saved as an add-in.
0 comments:
Post a Comment