Recent Posts

Display hidden data in an Excel chart

By default, Excel displays only visible data in a chart. Consequently, if you hide worksheet data, Excel won't display that data in a chart.

Microsoft Excel

Display hidden data in an Excel chart By default, Excel displays only visible data in a chart. Consequently, if you hide worksheet data, Excel won't display that data in a chart.
For instance, it's obvious from a quick look at the following chart's legend that Tuesday's data is missing:

Most of the time, that's probably what you'll want. After all, if you went to the trouble to hide the data at the worksheet level, it's doubtful that you'll want to expose the data in a chart.
However, it's easy enough to display the hidden data for those times when you do. To display hidden data in a chart, do the following:
  1. Select the chart.
  2. From the Tools menu, choose Options.
  3. Click the Chart tab.
  4. In the Active Chart section, clear the Plot Visible Cells Only Option.
  5. Click OK.
In Excel 2007, do the following:
  1. Select the chart.
  2. Click the Design tab.
  3. Click Select Data in the Data group.
  4. Click the Hidden And Empty Cells button (at the bottom).
  5. Select the Show Data In Hidden Rows And Columns option.
  6. Click OK twice.
Excel displays the hidden data in the chart without unhiding the data in the worksheet. For example, the modified chart below displays Tuesday's data even though that data is still hidden in the worksheet.
>


Microsoft Word

Make a vertical text selection in Word Here's a trick that seldom appears on the shortcut lists. Most of the time, we select text horizontally--a word, a series of words, a paragraph--from left to right or vice versa. But occasionally, the selection has to be vertical.
For instance, suppose you wanted to delete the leading characters in Figure A.
Figure A

To make a vertical selection, hold down [Alt] as you drag down through the text you want to highlight. Figure B shows the column of unwanted characters selected using this technique. Hit [Delete] and bam, they're gone.
Figure B

Although we selected text at the beginning of the lines in this example, you can make vertical selections anywhere on the page.
Note: Some users have reported that the Research pane appears when they try this selection technique. Here's the secret: Release the [Alt] key before you let up on the mouse button. Word should retain the selection. If you hold down [Alt] but release the mouse button, Word may think "[Alt]-click" and open the Research pane in response.


Microsoft Access

Hide the Database window to help protect your Access data You may not need to implement full-blown measures to secure your Access data, but you can apply some simple tricks to protect it from careless or overly curious users. Hiding the Database window offers one good safeguard.
The simplest way to accomplish this is via the Access Startup options (Figure A). These options let you determine specific behaviors when the database opens. Two of these features lend a hand toward securing your database:
  • Display Database Window: Deselect this option, and the next time someone opens the database, Access will hide the Database window. Users won't have immediate access to any objects.
  • Use Access Special Keys: Deselect this option to inhibit the use of F11 to unhide the Database Window.
Figure A

Set Startup options to hide the Database window.
Both settings work together. If you don't deselect the Use Access Special Keys option, users can press F11 to unhide the Database window.
To access the Startup options, choose Startup from the Tools menu. In Access 2007, click the Office button and then click the Access Options button. Select Current Database in the left pane and you'll find these options in the Application Options section.
Access 2007 doesn't have a Database window, but you can hide the Navigation Pane in a similar manor. That option is in the Navigation section just below the Application Options section.
Deselecting the Display Database Window option will also disable the Startup command. Users can bypass all these options by holding down the [Shift] key while opening the database. That trick's handy for you, but it leaves the database vulnerable to anyone else who knows about it. A user can also import objects into a blank database to bypass startup settings. Luckily, there's a bypass to the bypass.
Bypass the bypass
To close the bypass crack, set the AllowBypassKey property to False when the database closes. You can automate this process by calling the following code from a close task--just which task is up to you:
Public Sub SetStartupOptions(propname As String, _
 propdb As Variant, prop As Variant)
  'Set passed startup property.
  Dim dbs As Object
  Dim prp As Object
  Set dbs = CurrentDb
  On Error Resume Next
  dbs.Properties(propname) = prop
  If Err.Number = 3270 Then
    Set prp = dbs.CreateProperty(propname, _
     propdb, prop)
    dbs.Properties.Append prp
  End If
  Set dbs = Nothing
  Set prp = Nothing
End Sub
When you call the procedure, be sure to pass the appropriate startup option text, as follows:
Call SetStartupOptions("AllowBypassKey", dbBoolean, False)
After setting this property during the close process, the database will ignore the [Shift] key bypass if one of your users is wily enough to try it.
You can use this approach to set any of the startup properties. For instance, this call hides the Database window:
Call SetStartupOptions("StartupShowDBWindow", dbBoolean, False)
You can set options when you close or open the database with one exception. The AllowBypassKey property must be set when you close the database. Be sure to set a reference to the Data Access Objects library (DAO). Otherwise, this procedure will generate a reference error. (There's bound to be an ADO alternative, but DAO is efficient in this area.)
It makes sense that anyone who knows about the [Shift] key bypass might also know how to enable the [Shift] bypass by resetting the AllowBypassKey property to True. If this is the case, you'll have to apply workgroup security to restrict access to this property to the administrator. Someone can try to reset the property, but the effort will fail unless that person is working through the administrator login.