Stop Doing This — Try This Instead to Remove Dashed Lines in Excel

Why do those faint dashed lines suddenly appear across your worksheet? Why do they vanish when you scroll but reappear when you click Print Preview? Why does Ctrl+P show them even though you never added a border?

They’re not formatting errors. They’re Excel’s quiet way of telling you something about your print setup — and most people assume they’re broken borders or ghost formatting. They’re neither.

The Setup

You’re preparing Q1 sales reports for the APAC team. Your workbook has three sheets: Sales Data, Summary Dashboard, and Print Ready. You’re on Sales Data, which holds raw entries from regional reps. It looks clean — no visible borders, no shading, just plain text and numbers. But when you hit Ctrl+P or switch to Page Layout view, pale gray dashed lines slice diagonally across rows 15–18 and vertically between columns G and H.

Rep NameRegionQ1 Sales ($)Start DateAccount
Sarah ChenTokyo$45,2002024-01-12Acme Corp
Diego MendozaSão Paulo$38,7502024-01-15NovaTech Ltd
Priya KapoorMumbai$52,1002024-01-18Zephyr Systems
Kenji TanakaOsaka$29,4002024-02-03Lumina Group
Amina DialloLagos$33,8002024-02-07Bamako Solutions
Luca RossiMilan$41,6002024-02-10Veridian Holdings
Elena PetrovaMoscow$36,9002024-02-14ArcticEdge Inc
Javier RuizBuenos Aires$27,3002024-02-22Solara Partners
Nina KimSeoul$48,5002024-03-01Horizon Dynamics

The Challenge

Those dashed lines aren’t in your cell formatting — so deleting borders won’t help. They’re visual cues tied to either page breaks (automatic or manual) or print area boundaries. And here’s what makes it tricky: Excel shows them *only* in certain views — Page Layout, Page Break Preview, and Print Preview — but hides them in Normal view. So if you’re reviewing in Normal view and think everything’s clean, you’ll be shocked when the PDF export shows big gaps and phantom dividers.

Worse: pressing Ctrl+Shift+P to open Print Preview doesn’t tell you *why* the lines exist. And right-clicking them does nothing. You can’t select them. You can’t format them. That’s because they’re not objects — they’re dynamic indicators.

Walking Through It

Let’s walk through how to find and remove them — step by step, with before/after snapshots.

Step 1: Confirm they’re page breaks (not borders)

Switch to Page Break Preview: go to the View tab → click Page Break Preview (or press Alt+W+I). Now you’ll see blue dashed lines — horizontal ones indicate automatic page breaks; thick blue lines mean manual page breaks. In our Sales Data sheet, there’s a manual break after row 14 and another after row 17 — explaining the dashes you saw.

SymptomCauseFix
Dashed lines only appear in Page Layout / Print PreviewExcel is showing automatic or manual page breaksGo to View → Page Break Preview → drag blue lines to adjust or delete
Vertical dashed line between columns G and HManual column break inserted at column HIn Page Break Preview, right-click column H header → Delete Page Break
Dashed outline around A1:F20A print area has been manually setFormulas tab → Print Area → Clear Print Area
Lines disappear after saving & reopeningTemporary view artifact — often caused by zoom level or display scalingReset zoom to 100% (Ctrl+Shift+0), then check Page Break Preview again

Step 2: Remove manual page breaks

In Page Break Preview, hover over the blue dashed line after row 14. It turns into a double-headed arrow. Right-click it → Remove Page Break. Do the same for the one after row 17. Also, look at column headers — if column H has a thick blue border on its left edge, that means a vertical manual break was inserted there. Right-click column H → Delete Page Break.

Step 3: Clear the print area

Even with page breaks gone, you might still see a faint rectangle outlining A1:F20. That’s the print area. Go to the Page Layout tab → Print AreaClear Print Area. Or use the keyboard shortcut: Alt+P+A+A (Alt → P → A → A).

Here’s the key thing most people miss: clearing the print area doesn’t delete data — it just tells Excel “print everything visible.” And yes, this removes the dashed rectangle.

Step 4: Disable page break indicators globally (optional)

If you never want to see dashed lines again — even in Page Layout view — go to File → Options → Advanced. Scroll down to the Display options for this worksheet section. Uncheck Show page breaks. Note: this setting applies per-sheet, not globally. You’ll need to repeat it for each worksheet where you don’t want the lines shown.

The Result

After completing all steps, your Sales Data sheet looks identical in Normal view — but now, switching to Page Layout or Print Preview shows no dashed lines. The content flows cleanly across the page, and your exported PDF won’t have unexpected white gaps or mid-table splits.

Rep NameRegionQ1 Sales ($)Start DateAccount
Sarah ChenTokyo$45,2002024-01-12Acme Corp
Diego MendozaSão Paulo$38,7502024-01-15NovaTech Ltd
Priya KapoorMumbai$52,1002024-01-18Zephyr Systems
Kenji TanakaOsaka$29,4002024-02-03Lumina Group
Amina DialloLagos$33,8002024-02-07Bamako Solutions
Luca RossiMilan$41,6002024-02-10Veridian Holdings
Elena PetrovaMoscow$36,9002024-02-14ArcticEdge Inc
Javier RuizBuenos Aires$27,3002024-02-22Solara Partners
Nina KimSeoul$48,5002024-03-01Horizon Dynamics

What Could Go Wrong

These three mistakes happen more than you’d think — especially when rushing before a deadline.

Mistake #1: Deleting rows/columns instead of page breaks

You see a dashed line after row 14 and instinctively select row 15 → right-click → Delete. Now your data shifts up — and the line reappears *in the same visual position*, but now it’s after row 13. You’ve just lost a row of data. The fix isn’t deletion — it’s right-clicking the line itself or using Remove Page Break.

Mistake #2: Assuming “Clear Print Area” resets page breaks

Clearing the print area removes the rectangle — but it leaves manual page breaks untouched. So you’ll still get mid-table splits in PDF exports. Always check both: print area *and* page breaks.

Mistake #3: Forgetting the per-sheet setting

You disable Show page breaks in Excel Options for Sheet1… then switch to Sheet2 and wonder why the lines are back. That option is tied to the active worksheet. There’s no global toggle. You must repeat it for every sheet — or better yet, record a quick macro to apply it across all sheets.

Quick reference: Key shortcuts & actions

ActionShortcut / Path
Switch to Page Break PreviewAlt+W+I
Clear print areaAlt+P+A+A
Open Excel Options → AdvancedAlt+F+T, then scroll down
Toggle gridlines on/offAlt+W+G
Reset zoom to 100%Ctrl+Shift+0
Lisa Anderson

Lisa Anderson

Lisa is a certified Microsoft trainer who writes step-by-step guides for Power Automate