ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Gridlines have to be chosen each time (https://www.excelbanter.com/excel-discussion-misc-queries/194418-gridlines-have-chosen-each-time.html)

jknapp1005

Gridlines have to be chosen each time
 
It seems to me it used to be that gridlines were the default when printing. I
don't remember always having to choose "sheet" tab and click the "gridlines"
checkbox. I tried to set up XLSTART to have that be chosen automatically, but
it didn't work.

How can I have gridlines on every sheet without having to choose it when
printing?

Don Guillett

Gridlines have to be chosen each time
 
One way would be to put this in the ThisWorkbook module

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.PrintGridlines = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"jknapp1005" wrote in message
...
It seems to me it used to be that gridlines were the default when
printing. I
don't remember always having to choose "sheet" tab and click the
"gridlines"
checkbox. I tried to set up XLSTART to have that be chosen automatically,
but
it didn't work.

How can I have gridlines on every sheet without having to choose it when
printing?




All times are GMT +1. The time now is 10:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com