oakley 0226
New Member
- Joined
- Jan 28, 2024
- Messages
- 8
- Office Version
- 365
- 2019
- Platform
- 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
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