Microsoft Word
Quickly balance uneven columns in Word Creating newspaper-style columns in Word is about as simple as it gets: Just click the Columns tool on the Standard toolbar and select the appropriate number of columns. (In Word 2007, this tool is on the Page Layout tab in the Page Setup group.)
What's not so easy is balancing text across multiple columns.
There's just no way to predict how the columns will line up. Word fills the first column from the top to the bottom of the page (or section) and then fills the second column.
That means you could end up with one very long column with just a bit of text pushed into the second column, as shown below.
What you'll want, more often than not, is two (or more) columns of the same approximate length. There are two ways to accomplish this:
- Force a new column by inserting a Column break.
- Insert a Continuous Section break to force the text to fit into a smaller section.
Sometimes, what seems like a reasonable place to break has unpredictable results, as shown below. In this case, the second column is longer than the first, which you'll usually want to avoid.
It's no big deal to pull a few lines from the top of the second column around to the bottom of the first column. Or simply undo the forced break and try again. Generally, it's just hit or miss until you get it right.
The real problem is this: If you return to a single column format, the Column Break is still there, which works the same as a page break, in the absence of columns. However, when a forced break is the right choice, use it, as follows:
- Position the cursor where you want the column to end and a new one to begin.
- Choose Break from the Insert menu.
- Select the Column Break option in the Break Types section.
- Click OK, and Word will move all of the text following the insert point to the top of the next column.
To add a continuous section break, do the following:
- Position the cursor at the end of the last column.
- Choose Break from the Insert menu. In Word 2007, click Breaks on the Page Layout tab.
- Select Continuous in the Section Break Types section.
- Click OK.
However, the section break remains and you'll probably want to delete it. To do so, click Show/Hide on the Standard toolbar to display formatting marks. In this case, the section break is a series of equal signs.
Simply highlight the section break and press Delete. Keep in mind that deleting the section break deletes the formatting that's specific to that section. Consequently, the text becomes part of the following section. It's best to delete the section break before you remove the column format unless you mean to retain the section.
In the final analysis, both methods have pros and cons. Knowing those can help you decide which method works best at the time. However, knowing how these unseen formats affect your document if you delete the columns is probably just as important.
Microsoft Excel
Shade Excel's worksheet rows, columns and sometimes both Shading every nth row in a worksheet is a common format. In fact, Mary Ann Richardson shared a helpful technique for doing so last year. You can expand this same technique to shade both rows and columns to create some interesting, albeit odd, shading patterns.
Before we take a look at columns, let's review Mary Ann's original technique, which includes the following conditional expression:
=MOD(ROW(),interval)=0
where interval is the number of rows in the pattern. For example, if you want to shade every other row, interval is 2; to shade every third row, interval is 3, and so on.
By substituting the ROW() function with the COLUMN() function, you can shade columns in the same way, as follows:
- Select the range you want to format. If you want to format the entire worksheet, click the Select All button (the blank cell that intersects the row and column header rows) or press [Ctrl]+A.
- Choose Conditional Formatting from the Format menu.
- Click Condition 1's drop-down arrow and choose Formula Is.
- Enter the following expression in the formula control: =MOD(COLUMN(),2)=0
- Click the Format button, click the Patterns tab, choose a color, and click OK. You've entered the conditional expression and specified a format.
Click on the image to enlarge.
- Click OK to return to the shaded worksheet.
Click on the image to enlarge.
With a little experimentation, you can create a number of shading patterns, but let me get you started. First, to create a checkerboard pattern, use the above instructions, but enter the following expression in step 4: =MOD(COLUMN(),2) =MOD(ROW(),2). Frankly, I've never known a use for a checkerboard pattern, but don't let that stop you from experimenting. Remember, for more variety, interval doesn't have to be the same for both rows and columns.
Click on the image to enlarge.
Click on the image to enlarge.
By entering the formulas separately, you can shade alternating rows and columns. Follow the previous instructions, but in steps 3 and 4, create two conditions.
Click on the image to enlarge.
Click on the image to enlarge.
By changing intervals and colors, you can create any number of interesting patterns. Remember, neither the interval nor the color has to be the same for both columns and rows, but the first conditional expression takes precedent. Don't go nuts with this technique or you'll end up with a mess. The truth is, you'll not find a lot of use for alternating shade patterns, but knowing you can expand on the technique might come in handy some day.
Microsoft Access
Save room without sacrificing functionality in an Access form You often need to display large amounts of text in an Access form--well, it's common to need to store lots of text. Whether users need to view all that data all the time is unlikely.
The good news is that with a little planning, your form can provide quick access to large amounts of data in a memo or text field while remaining neat and trim. The key is to let users decide when they need to view all the content. In short, let the user double-click the memo control or a command button to display all the data only when they need it. That way, the user has access to the data and the control consumes a reasonable area on the form.
Using Northwind, let's work through a quick example:
- Open the Employees form in Design view.
- Click the Code button to launch the form's module.
- Enter the Notes_DblClick() subprocedure shown below.
- Return to Access and open the form in Form view.
- Double-click the Notes control.
Private Sub Notes_DblClick(Cancel As Integer)
'Display contents of Notes field in a Zoom box.
DoCmd.RunCommand acCmdZoomBox
End SubA quick double-click of the Notes control displays the entire entry for the current record's Notes field. (The Notes control is on the form's Personal Info tab.)
Now, this method isn't intuitive to the user--you'll have to train them to double-click the control. If you'd like something more obvious, you can add the same code to a command button. With the right caption, most users will understand that clicking the button will display the full contents of the corresponding control.
Using the Employees form, let's work through an example that uses a special zooming command button:
- With the Employees form in Design view, click the Personal Info tab.
- Insert a command button to the right of the Notes control and resize the new command button so that it's fairly small.
- Double-click the command button to open its Properties window.
- Name the button cmdZoom.
- Enter a + (plus sign) for the control's Caption. (Or use something more descriptive, like the phrase "Zoom In".
- Click the Code button to launch the form's module.
- Enter the cmdZoom_Click subprocedure shown below.
- Return to Access and open the Employees form in Form view.
- Click the Personal Info tab.
- Click the + Command button to display the contents of the Notes control in a zoom box.
Private Sub cmdZoom_Click()
'Display contents of Notes field in a Zoom box.
Me.Notes.SetFocus
DoCmd.RunCommand acCmdZoomBox
End SubNotice that the SetFocus method in the command button's Click event procedure references the Notes control on the Employees form (Me.Notes). When applying this technique to your forms, be sure to substitute the Notes reference with the name of the memo or text field you want to zoom. Both solutions are simple to implement, and it won't take long for users to get the hang of viewing voluminous data.