Hiding Print area line

oakley 0226

New Member
Joined
Jan 28, 2024
Messages
8
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
So I have a sheet where I made it so A1 - R50 are all on 1 page, and I have data on S1 - Z50 are on page 2 to the right of it, I only wanted page 1 (A1 - R50) to print (along with other active sheets), will the data on the second page is visible, so I put set a print area around page 1... Works great, but the grey line from the print area shows and is really annoying, especially because I have gridlines turned off.... How can I hide the print area line with out. I have hidden group lines before using the below but am not sure how to do this one.

Hit alt-f11 to get to the VBE
hit ctrl-g to see the immediate window
type this and hit enter.

activesheet.groupboxes.visible = false

If you only want to hide a single groupbox, you can use something like:

activesheet.groupboxes("group box 1").visible = false
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Welcome to the MrExcel board!

In File -> Options, turn this setting off.

1706524165222.png
 
Upvote 0
Thank you for your response! will this apply to others automatically when i send them the excel or, will they then have to do it also? I am wanting it to be hidden to anyone i send it to automatically. thank you!
 
Upvote 0
I just found out making pagebreak false hides it but only in normal view, it remains visible in Page layout view. Is there any way to hide the print area line in page layout view?
 
Upvote 0
Not that I know of.
As described in the Page Layout view pop-up, that view is to see how your printed documents will look. If it did not show where the print area starts & stops, how could it give any indication of that?

1706591060785.png
 
Upvote 0
Not that I know of.
As described in the Page Layout view pop-up, that view is to see how your printed documents will look. If it did not show where the print area starts & stops, how could it give any indication of that?

View attachment 105951
That makes sense, iim just trying to clean up my workbook and was hoping there was a way. Thanks for your response!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
(You never know - somebody else might come along with a way to do it. 🤞 )
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top