5 Ways Print Excel Lines

Introduction to Printing Excel Lines

When working with Excel, printing can be a crucial step for sharing or preserving your work. Excel offers various options for customizing your printouts, including how gridlines are displayed. Gridlines are the lines that separate rows and columns in an Excel spreadsheet. Printing these lines can make your data easier to read, especially if you’re dealing with complex spreadsheets. Here’s how you can print Excel lines effectively.

Method 1: Using the Page Setup Option

To print gridlines in Excel, you can use the Page Setup option. This method is straightforward and applies to most versions of Excel. - Go to the Page Layout tab in your Excel ribbon. - Click on Page Setup in the Page Setup group. - In the Page Setup dialog, navigate to the Sheet tab. - Under the Print section, check the box next to Gridlines. - Click OK to apply your changes.

Method 2: Using the Print Preview Option

Another way to ensure that gridlines are printed is by using the Print Preview feature. This allows you to see how your spreadsheet will look before you print it. - Click on the File tab. - Select Print from the left menu. - In the Print dialog, click on the Print Preview button or the Page Setup link. - In the Page Setup dialog, go to the Sheet tab. - Check the Gridlines box under the Print section. - Proceed to print your document.

Method 3: Using Excel Options

You can also configure Excel to print gridlines by default through the Excel Options. - Go to the File tab and select Options. - In the Excel Options window, click on Advanced. - Scroll down to the Print section. - Ensure the box next to Print gridlines is checked. - Click OK to save your changes.

Method 4: Using VBA Macro

For those comfortable with Visual Basic for Applications (VBA), you can create a macro to print gridlines automatically. - Press Alt + F11 to open the VBA Editor. - In the Project Explorer, find your workbook, right-click, and insert a new module. - Paste the following code into the module window:
Sub PrintGridlines()
    ActiveSheet.PageSetup.PrintGridlines = True
    ActiveSheet.PrintOut
End Sub
  • Save the module and return to Excel.
  • Press Alt + F8 to open the Macro dialog, select PrintGridlines, and click Run.

Method 5: Manually Adding Borders

If you only need to print gridlines for a specific range of cells, you can manually add borders instead of using the print gridlines feature. - Select the range of cells you want to print with gridlines. - Go to the Home tab. - Click on the Borders button in the Font group and select All Borders. - Proceed to print your selection.
Method Description
Page Setup Check the gridlines box in the Page Setup dialog.
Print Preview Use Print Preview to check and adjust gridline printing.
Excel Options Configure Excel to print gridlines by default.
VBA Macro Create a macro to automatically print gridlines.
Manually Adding Borders Add borders to a specific range of cells.

💡 Note: Always preview your printout before printing to ensure that gridlines are correctly displayed and your data is properly formatted.

In summary, printing Excel lines or gridlines can enhance the readability of your spreadsheets when printed. By using one of the five methods outlined above—Page Setup, Print Preview, Excel Options, VBA Macro, or manually adding borders—you can ensure that your printed Excel documents are clear and easy to understand. Whether you’re working with simple lists or complex data analyses, being able to control the printing of gridlines is a useful skill for any Excel user.