Hide Worksheets So That They Cannot Be UnhiddenSometimes you want a place for information that users can't read or modify. Build a backstage into your workbook, a place to keep data, formulas, and other minutiae consumed by, but not seen in, your sheets. A useful practice when setting up a new Excel workbook is to reserve one worksheet for storing information users do not need to see: formula calculations, data validation, lists, useful variables and special values, sensitive data, and so forth. Although you can hide the sheet by selecting Format You can, of course, simply protect the worksheet. However, this still leaves it in full view-sensitive data, scary formulas, and all. Also, you can't protect a cell linked into any of the controls available to you from the Forms toolbar. Instead, we'll fiddle with the worksheet's Visible property, making it xlVeryHidden. From the VBE (Tools Select the sheet you want to hide from the Project Explorer and reveal its properties by selecting View
Figure 1-9. Properties window of a worksheet having its visible property set to 2 - xlSheetVeryHidden
To reverse the process, simply follow the preceding steps, this time selecting -1 - xlSheetVisible. |
